[prev in list] [next in list] [prev in thread] [next in thread]
List: e-lang
Subject: [e-lang] Equality of mappings in E
From: David-Sarah Hopwood <david.hopwood () industrial-designers ! co ! uk>
Date: 2009-03-11 9:36:13
Message-ID: 49B7860D.6090701 () industrial-designers ! co ! uk
[Download RAW message or body]
[moved from google-caja-discuss]
Mark S. Miller wrote:
> David-Sarah Hopwood <david.hopwood@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.
Ah. Presumably you considered enumerating in key-sorted order --
what were the reasons for not doing that?
--
David-Sarah Hopwood ⚥
_______________________________________________
e-lang mailing list
e-lang@mail.eros-os.org
http://www.eros-os.org/mailman/listinfo/e-lang
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic