[squeak-dev] Curly Braces for Multiple Value Assignment?

Ken Causey ken at kencausey.com
Tue Mar 23 19:53:12 UTC 2010


In the email archived here Mark seems to indicate that at some point you
could use the curly brace syntax as if it were a sort of list
comprehension.  Brian Rice pointed me toward this link as I was asking
about idioms for variable swapping on the IRC channel.

This doesn't work in trunk as the parser doesn't like it for multiple
reasons.  I tried it in 3.7 and the parser complains less but still
doesn't like the := (or _) after the brace.  Is this mistranslated
speculation by Mark or was this a feature lost eons ago?  If lost, was
there a reason against it?  I've found myself pining for the ability to
nicely handle returning multiple values as well as stuff like variable
swapping that would be nicely covered (given certain assumptions about
the implementation) by this.

Wouldn't some form of list comprehension be a nice check box for Squeak?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20100323/7a5e6bf0/attachment.pgp

More information about the Squeak-dev mailing list