Page 2 of 2

Posted: Wed Sep 02, 2009 3:04 pm
by Little John
eesau wrote:Maybe he meant something like:

Code: Select all

x, y, z = 1.0
Yes, maybe.

That would be a big advantage, in case it would be possible to write also on the right side more than one value (like e.g. Lua allows to do):

Code: Select all

x, y, z = 1, 2, 3
x, y, z = <procedure call that returns 3 values>
x, y = a, b
x, y = y, x    ; cool form of a SWAP statement, no? :o)
Regards, Little John

Posted: Wed Sep 02, 2009 3:59 pm
by blueznl
IMHO such a notation would decrease readability... -100 :-)