Re: Swap and pass-by-reference
- Posted by mattlewis (admin) Jan 27, 2011
- 1692 views
petelomax said...
DerekParnell said...
a <=> b
{a,b} = {b,a}
(or whatever syntax you lot settle on for multiple assignment) would be a more useful addition to the language.
Your multi-assignment is another feature people have asked for (and that would be very useful):
{success, val} = value( some_variable )
Matt