From: Walton Hoops Date: 2010-05-04T23:05:23+09:00 Subject: Re: Something I expected to work, but didn't! On 5/4/2010 5:31 AM, Kurtis Rainbolt-greene wrote: > Alex DeCaria wrote: > > >> compound assignment operators such as *=, +=, etc. aren't allowed >> with parallel assignment. >> > Ah-ha, someone gets what I was talking about, but my point was they > should be allowed. "Path of least surprise" and all that, plus this > looks cleaner: > > x, y, z = 2, 4, 6 > > x, y += z > > than > > x, y, z = 2, 4, 6 > > x += z > y += z > I think you misunderstand how multiple assignment works: irb(main):001:0> x, y=2 => 2 irb(main):002:0> x => 2 irb(main):003:0> y => nil In other words, even if that was allowed, the two snippets you provided would not be equivalent.