Re: Swap and pass-by-reference

new topic     » goto parent     » topic index » view thread      » older message » newer message
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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu