
Sept. 4, 2014
11:24 a.m.
On Thu, Sep 4, 2014 at 1:18 PM, David Wilson <dw+python-ideas@hmmz.org> wrote:
$ jsc >>> function keys(o) { ... var k = []; ... for(var key in o) k.push(key); ... return k; ... } undefined >>> keys({"5": 1, "4": 1}) 4,5
I love a simple existence proof! Can we now discard the presumed equivalence of OrderDict and JS objects? Besides, even if JS and Python were the only two languages we cared about, JSON is supported in many other languages. I'd be really surprised if all of them guaranteed key order. If fact, I wouldn't be surprised if none of them did. Skip