[squeak-dev] Block argument syntax

John Brant brant at refactoryworkers.com
Sat Mar 2 14:48:37 UTC 2013


On 3/1/2013 4:47 AM, Frank Shearar wrote:
> I was rather surprised to learn that the following is valid syntax:
>
>      [ : x | x + 1]
>
> (Note the space before the argument name.)
>
> In fact, this is too:
>
>      [ : "This is a really long comment in a very, very strange place.
> It makes it very hard to see that the : before this comment turns the
> token after this comment into a block argument." x | x + 1]


Not quite related, but in the VW/Squeak family, this is a valid symbol:

	# "I like to comment symbols" a

Depending on the font you use, it can be difficult to tell the 
difference between these:

	#""''

	#'""'



John Brant


More information about the Squeak-dev mailing list