<div dir="ltr"><div>Hi Bil,</div><div> thanks for the quick response.</div><div><br></div><div>The problem that I'm facing is that write/ format ~S doesn't wrap lists around (list ..),</div><div>thus I cannot use for serialize/deserialize. (my objective is saving/loading</div><div>state)</div><div><br></div><div>And the example I gave about the namespace is really simple.<br></div><div>In my situation I'm doing things like loading a whole file into a separate namespace</div><div>Like this example from the documentation</div><div><br></div>(define *lib*<br> (let ()<br> (with-let (unlet)<br>                 (load "any-library.scm" (curlet)) <br>                 ;; etc..<br><div>                 )))</div><div><br></div><div>How could I "write" something that comes from *lib* that is eval'able like the object->string :readable does?</div><div>(Practically, picture that there is "make-state" function in *lib* that returns a curlet, like we were discussing in the previous email,</div><div>and you need to serialize/deserialize this state object)<br></div><div><br></div><div>I realize that I might be pushing the language limits like this, but I hope there is a solution.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 29 Jul 2020 at 22:28, <<a href="mailto:bil@ccrma.stanford.edu">bil@ccrma.stanford.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">"readable" in this context means readable by s7. So, yes, that's about <br>
what I'd<br>
expect. You can do this more simply:<br>
<br>
(define *subnamespace* (inlet :nested-curlet (inlet :nested 1)))<br>
<br>
and to print it:<br>
<br>
(display (*subnamespace* :nested-curlet))<br>
<br>
which gives:<br>
<br>
(inlet 'nested 1)<br>
<br>
and similarly with (format #f "~S" (*sub...))<br>
<br>
</blockquote></div>