[squeak-dev] Block argument syntax

Bob Arning arning315 at comcast.net
Fri Mar 1 16:00:12 UTC 2013


You don't need to look too far to see folks who preferred

1 to: length do:[:i|

Fewer keystrokes, maybe?

On 3/1/13 10:48 AM, Chris Muller wrote:
>> I know this is true for a number of Smalltalk implementations.  I found it
>> very surprising also.  Someone I worked with always formatted their code
>> this way.  He said it made it easier to double click and highlight the
>> variable.  I wasn't sure that was enough reason to do it but he did.
> So, score +1 for ": x" but ":x" is still left with a score of 0.  What
> is the advantage of writing ":x"?
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20130301/e96d6f2c/attachment.htm


More information about the Squeak-dev mailing list