Hacker News new | ask | show | jobs
by jeremy8883 2089 days ago
Interesting idea to remove number and string types. The downside being that you spend more time writing parsers of the data. But if you had some sort of separate schema that generated all of that for you, it would no longer be such a big deal.

They mention that their key/value pairs are ordered. The downside here is that not all languages (eg. javascript), support them.

I also prefer them to be unordered. The downside with ordered dictionaries, is that you need to always be asking "does sequence matter here?". So it adds an additional thing to think about, more tests need to be written, and certain optimisations can't always be made.

1 comments

Both Objects and Maps in JS are in stable insertion order.
Apologies, it looks like pre es6, they were unordered objects. But now there are rules that guarantee insertion order.