Szymon Drejewicz wrote:
> Kristof Bastiaensen wrote:
> 
> 
>>wouldn't it be nice to be able to compare multiple values?
>>for example:
>>x, y == 1, 2
>>#equivalent to x == 1 && y == 2
> 
> 
> For me that notation has one drawback: what should happend if
>         y = 5
> and you'll write
>         [x, y == 1, 2]
> ?
> 
> Is it an array with three elements
>         [x, false, 2]
> ?
> 
> or an array with one element which has value of "multiple comaprision"
>         [false]
> ?
> 

Not sure that this shows anything, but the current behavior for = 
instead of == is:

[x, y = 1, 2]
=> [0, 1, 2]

So it looks like the array context overrides the parallel assignment?

It's not a good analogy, though, because == is a method and = is not.