From: Florian Gross Date: 2005-01-08T21:11:25+09:00 Subject: Re: List assignment syntax Zsban Ambrus wrote: > I'm a little dissatisfied with the list assignment syntax of ruby. > On an example: > > irb(main):001:0> a = [2, [3, 5], 8] > => [2, [3, 5], 8] > > This works: > > irb(main):002:0> x, (y, ), z = a > => [2, [3, 5], 8] Personally, I would like being able to assign to nil in that case. I've seen "_" been used as a throw away assignment target, but that's just not as expressive as "nil", IMHO.