<div dir="ltr"><div>Hi Orm,</div><div><br></div><div>I understand and indeed my only usecase would be that of live coding.</div><div>It would save plenty of implementation complexity, would transparently expose other things like +documentation+ etc.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 2 Oct 2020 at 14:46, Orm Finnendahl &lt;<a href="mailto:orm.finnendahl@selma.hfmdk-frankfurt.de">orm.finnendahl@selma.hfmdk-frankfurt.de</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"><div>Hi Christos,<br><br> without wanting to start a big discussion here I&#39;d recommend to use this technique with caution: Changing the semantics or inner working of named functions on the fly is introducing state and can make programs quite challenging to debug and a fast way of getting rid of the advantages of functional programming ;-)<br><br>I can see the necessities of doing this e.g. in live-coding, but would advice to use it in very restricted and well defined situations of coding (like in live coding situations) and doubt that the mechanism you describe is reaĺly necessary in such situations.<br><br>--<br>Orm<br><br><div class="gmail_quote">Am 2. Oktober 2020 03:44:16 MESZ schrieb Christos Vagias &lt;<a href="mailto:chris.actondev@gmail.com" target="_blank">chris.actondev@gmail.com</a>&gt;:<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr"><div>Hi all,</div><div><br></div><div>i stumbled upon srfi 212 which speaks of aliases.<br>&quot; An alias definition transfers the binding of one
      identifier to another, effectively aliasing the identifier.&quot;</div><div><a href="https://srfi.schemers.org/srfi-212/srfi-212.html" target="_blank">https://srfi.schemers.org/srfi-212/srfi-212.html</a></div><div><br></div><div>I think that would be a great help for the concept of libraries/namespaces.</div><div>In the r7rs define-library concept, you can import a library and have access to its &quot;exported&quot; symbols.</div><div><br></div><div>If these exported symbols are aliases, we could have hot-reloading redefinition of a library&#39;s symbols (redefining a function) and have this change reflected on the places where it&#39;s used.</div><div><br></div><div>This is one feature from clojure I really missed in scheme.<br></div><div>In my work on s7-imgui I do this but with the hack of making the &quot;imported&quot;<br></div><div> function a macro that resolves the functions&#39; symbol from the environment where it&#39;s defined.</div><div>But, aliases would be a more subtle solution.</div><div><br></div><div>-- excuse the long text, it&#39;s quite late yet something on my mind for quite a while<br></div><div><br></div><div>Christos<br></div></div>
</blockquote></div><hr>Prof. Orm Finnendahl<br>Komposition<br><br>Hochschule für Musik und Darstellende Kunst<br>Eschersheimer Landstr. 29-39<br>60322 Frankfurt am Main<br><br><a href="https://www.youtube.com/watch?v=2rWha1HTfFE&amp;list=PLiGfneJSWmNw6dTUvcTHbTkCYOOTiB_N6" target="_blank">https://www.youtube.com/watch?v=2rWha1HTfFE&amp;list=PLiGfneJSWmNw6dTUvcTHbTkCYOOTiB_N6</a><br><br></div></blockquote></div>