I think that, without #&lt;- being in all the major Smalltalks first, much less being common practice in the first place, it is not appropriate to discuss this for inclusion in the Smalltalk Standard at this time.<br><br>Andres.<br>
<br><div class="gmail_quote">On Sat, Mar 22, 2008 at 2:22 PM, Panu Logic &lt;<a href="mailto:panulogic@gmail.com">panulogic@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



  

<div bgcolor="#ffffff" text="#000000">
It all boils down to shorter code. You can write<br>
<br>
myArray :=&nbsp;&nbsp; Array<br>
&nbsp; with: self this<br>
&nbsp; with self that<br>
&nbsp; with: aVariable<br>
&nbsp; with: #foo.<br>
<br>
<br>
But after you want more than 4 dynamic elements, you will need&nbsp; <br>
to do something else, such as create an OrderedCollection and<br>
start adding things to it, and then perhaps convert it to Array. <br>
You might decide to define a binary alias for #add:,&nbsp; like&nbsp; #&lt;-&nbsp; <br>
to save a few keystrokes. <br>
<br>
The downside for adding extra syntax for this purpose is that<br>
it makes the standard thicker, and the language harder to learn.<br>
Harder to learn means easier to make mistakes,&nbsp; and errors.<br>
<br>
For me I don&#39;t know which one is better,&nbsp; it&#39;s a question of <br>
Obama vs. Hillary.<br>
<br>
-Panu Viljamaa<br>
<br>
<br>
<br>
<br>
<br>
Andres Valloud wrote:
<blockquote type="cite">I think something that is being left unaddressed is
whether using
literal arrays that allow code expressions (e.g.: the brace syntax in
Squeak) is a good practice or not.&nbsp; In my experience, I have not felt
the need for such things, but maybe I have not been exposed to
particular circumstances in which they become useful.&nbsp; Does anybody
have some slam dunk examples that can be shared so that we can evaluate
this better?<br>
  <br>
Andres.<br>
  <br>
  <div class="gmail_quote">On Tue, Mar 18, 2008 at 9:57 AM, Eliot
Miranda &lt;<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.com</a>&gt;
wrote:<br>
  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div>On Mon, Mar 17, 2008 at 2:11 PM, Craig Latta &lt;<a href="mailto:craig@netjam.org" target="_blank">craig@netjam.org</a>&gt;
wrote:<br>
    </div>
    <div class="gmail_quote">
    <div>
    <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
&nbsp;&gt; Defining new language elements is hard. &nbsp;The worst that could
happen<br>
&nbsp;&gt; to this project, is to have extremely long threads with no
conclusion<br>
&nbsp;&gt; as on the Squeak list.<br>
      <br>
&nbsp; &nbsp; &nbsp;Indeed, although for what it&#39;s worth there&#39;s no lingering debate<br>
there on this particular issue[1]. ;)<br>
      <br>
      <br>
-C<br>
      <br>
[1]<br>
      <br>
&nbsp; &nbsp; &nbsp;Namely, the short form of...<br>
      <br>
&nbsp; &nbsp; &nbsp;Array with: #foo with: #bar<br>
      <br>
is...<br>
      <br>
&nbsp; &nbsp; &nbsp;#(foo bar)<br>
      <br>
as in Smalltalk-80, and the short form of...<br>
      <br>
&nbsp; &nbsp; &nbsp;Array with: #foo with: true<br>
      <br>
is...<br>
      <br>
&nbsp; &nbsp; &nbsp;{#foo. true}</blockquote>
    </div>
    <div><br>
Well, in Squeak 3.9 I get<br>
    <br>
Welcome to the finale version of 3.9 of 7 of November 2006<br>
#(nil true false foo) collect: [:ea| ea class] {UndefinedObject . True
. False . ByteSymbol}<br>
#(nil true false foo) printString &#39;#(nil true false #foo)&#39;<br>
    <br>
    </div>
    <div>
    <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&nbsp;
&nbsp;&nbsp; But I suspect the appropriate standard use of curly brackets<br>
across multiple dialects is a whole other morass. :)</blockquote>
    </div>
    <div><br>
Having been living with Squeak for a while now I really, really like
the curly brace syntax.&nbsp; I also note that it doesn&#39;t conflict with e.g.
VisualWorks use of #{name} for binding references.&nbsp; So I have a strong
personal preference for it, but that&#39;s just personal.<br>
    <br>
    </div>
    </div>
    <br>
    <br>
_______________________________________________<br>
ANSI-Smalltalk mailing list<br>
    <a href="mailto:ANSI-Smalltalk@lists.openskills.org" target="_blank">ANSI-Smalltalk@lists.openskills.org</a><br>
    <a href="http://lists.openskills.org/cgi-bin/mailman/listinfo/ansi-smalltalk" target="_blank">http://lists.openskills.org/cgi-bin/mailman/listinfo/ansi-smalltalk</a><br>
    <br>
  </blockquote>
  </div>
  <br>
  <pre><hr size="4" width="90%">
_______________________________________________
ANSI-Smalltalk mailing list
<a href="mailto:ANSI-Smalltalk@lists.openskills.org" target="_blank">ANSI-Smalltalk@lists.openskills.org</a>
<a href="http://lists.openskills.org/cgi-bin/mailman/listinfo/ansi-smalltalk" target="_blank">http://lists.openskills.org/cgi-bin/mailman/listinfo/ansi-smalltalk</a>
  </pre>
</blockquote>
<br>
</div>



<br>_______________________________________________<br>
ANSI-Smalltalk mailing list<br>
<a href="mailto:ANSI-Smalltalk@lists.openskills.org">ANSI-Smalltalk@lists.openskills.org</a><br>
<a href="http://lists.openskills.org/cgi-bin/mailman/listinfo/ansi-smalltalk" target="_blank">http://lists.openskills.org/cgi-bin/mailman/listinfo/ansi-smalltalk</a><br>
<br></blockquote></div><br>