Menu

#657 Extended assignment

None
unread
nobody
None
none
3
2015-06-13
2014-11-04
Erich
No

It would be nice to have an extended form of assignment

Var1, Var2 [, ..] = Var3 [, Var4 [, ..]]

This would allow for a concise specification of:

a) a,b,c=0 -- Initialize more than variable
b) x,y = y,x -- Exchange two variables with a helper variable
c) r, s, phi = eea(a, b) -- eea() returns an array of three items

Discussion

  • Erich

    Erich - 2014-11-04

    Sent too quick ..

    "Initialize more than variable" should read "more than one variable"
    "Exchange two variables with a helper variable" should read ".. without a helper variable"

     
  • Erich

    Erich - 2015-06-13
    • Milestone: 5.0.0 --> None
    • Priority: 1 --> 3
     

Anonymous
Anonymous

Add attachments
Cancel