[squeak-dev] Block argument syntax

Ron Teitelbaum ron at usmedrec.com
Fri Mar 1 15:56:13 UTC 2013


> From: squeak-dev-bounces at lists.squeakfoundation.org [mailto:squeak-dev-
> bounces at lists.squeakfoundation.org] On Behalf Of Chris Muller


> > 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"?
> 

Probably just the way I learned.  I bet it's done that way in the checkbook example.  I think it was VisualWorks.  Just tried to find it but couldn't.  So +1 for habit, and it's one less space to type :).

BTW I do write | temp1 temp2 | instead of |temp1 temp2| so -1 for consistency!  

Ron



More information about the Squeak-dev mailing list