<br><br><div class="gmail_quote">On Tue, Nov 3, 2009 at 1:06 PM, Nicolas Cellier <span dir="ltr">&lt;<a href="mailto:nicolas.cellier.aka.nice@gmail.com">nicolas.cellier.aka.nice@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
2009/11/3 Andreas Raab &lt;<a href="mailto:andreas.raab@gmx.de">andreas.raab@gmx.de</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Nicolas Cellier wrote:<br>
&gt;&gt;<br>
&gt;&gt; While at isSelfEvaluating, I wonder why we do not abuse {..} notation<br>
&gt;&gt; a bit more.<br>
&gt;&gt; Instead of printing &#39;aSet( 0@0 1@2 )&#39;<br>
&gt;&gt; we could just make it evaluate proof &#39;{0@0. 1@2} asSet&#39;<br>
&gt;&gt;<br>
&gt;&gt; Of course, with limited stream, we take the risk of loosing trailing &#39;<br>
&gt;&gt; asSet&#39; information.<br>
&gt;&gt; So we can also print using a less nice but still evaluating &#39;Set<br>
&gt;&gt; newFrom: {0@0. 1@2}&#39;.<br>
&gt;&gt;<br>
&gt;&gt; As a bonus, generalizing this behaviour might also eliminate a few<br>
&gt;&gt; bytecodes and methods from the Kernel.<br>
&gt;&gt;<br>
&gt;&gt; Same for storeOn:<br>
&gt;&gt;<br>
&gt;&gt; What do you think ?<br>
&gt;<br>
&gt; -1. The goal of printing isn&#39;t to make parsing easier. In fact I find this<br>
&gt; to be the least useful application of {} - the advantage of the syntax form<br>
&gt; is that it is immediately recognized and consequently requires less effort<br>
&gt; than having &quot;an Array(&quot;. That you can also evaluate it in some situations is<br>
&gt; a useful side effect but no more.<br>
&gt;<br>
&gt; Cheers,<br>
&gt;  - Andreas<br>
&gt;<br>
<br>
</div></div>OK, I see &#39; newFrom: &#39; can be considered as noise, so we can&#39;t have<br>
our cake and eat it too ?<br>
I find the fact that simple objects print as a simple code snippet<br>
such a nice feature though...<br>
Set &lt;&lt; {0@0. 1@2} would be short, but I guess introducing a new binary<br>
selector will be hard to sell :)<br></blockquote><div><br></div><div>yuck.  asSet is readable and in the Smalltalk tradition.  &lt;&lt; sMLells ;)</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<font color="#888888"><br>
Nicolas<br>
<br>
</font></blockquote></div><br>