Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • currently only simple variables may be the target of multiple assignment expressions, e.g. if you have a person class with firstname and lastname fields, you can't currently do this:
    Code Block
    (p.firstname, p.lastname) = "My name".split()
    
  • currently multiple assignment cannot be used for declaring multiple class fields and initializing them as:
    Code Block
    
    class Foo {
        def (i,j) = [1,2]
    }