From: Martin DeMello Date: 2004-09-06T14:00:11+09:00 Subject: Re: OK... :) question about hash and array literals Yukihiro Matsumoto wrote: > > Hmm, I thought hash order would be ignored always for compares. > Optional use of order is an interesting idea, although I want better > looking API than > > | {1=>2, 3=>4}.ordered != {3=>4, 1=>2}.ordered How about { 1=>2, 3=>4 } !~ { 3=>4, 1=>2 } { 1=>2, 3=>4 } =~ { 1=>2, 3=>4 } OTOH, that syntax might more profitably be reserved for pattern matching, which would also be a nice thing to have. martin