On Saturday 08 January 2005 07:11 am, Florian Gross wrote:
| 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.

That seems like a good idea.
T.