<div dir="ltr"><div>Hi Bil,</div><div> thanks for the quick response.</div><div><br></div><div>The problem that I&#39;m facing is that write/ format ~S doesn&#39;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&#39;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 &quot;any-library.scm&quot; (curlet)) <br>                 ;; etc..<br><div>                 )))</div><div><br></div><div>How could I &quot;write&quot; something that comes from *lib* that is eval&#39;able like the object-&gt;string :readable does?</div><div>(Practically, picture that there is &quot;make-state&quot; 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, &lt;<a href="mailto:bil@ccrma.stanford.edu">bil@ccrma.stanford.edu</a>&gt; 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">&quot;readable&quot; in this context means readable by s7.  So, yes, that&#39;s about <br>
what I&#39;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 &#39;nested 1)<br>
<br>
and similarly with (format #f &quot;~S&quot; (*sub...))<br>
<br>
</blockquote></div>