[e-lang] [Caja] Equality of mappings in E

Mark S. Miller erights at google.com
Tue Mar 10 16:28:04 EDT 2009


On Tue, Mar 10, 2009 at 11:01 AM, David-Sarah Hopwood <
david.hopwood at industrial-designers.co.uk> wrote:

>
> Mark S. Miller wrote:
> > The corresponding cases in E without quasis:
> >
> >     ? ["a" => 1, "b" => 2] == ["b" => 2, "a" => 1]
> >     # value: false
> >
> > They aren't equal because they are different.
>
> I'm surprised. The ASTs of the left- and right-hand sides are certainly
> different, but this is testing whether the values are the same.
> Why aren't the values the same?
>
> [Feel free to move this to e-lang.]
>

Because their enumeration order is different.


-- 
   Cheers,
   --MarkM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.eros-os.org/pipermail/e-lang/attachments/20090310/f6142358/attachment.html 


More information about the e-lang mailing list