5 ms·
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 separat
by jeremy8883 6y 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.
- xixixao 6y agoBoth Objects and Maps in JS are in stable insertion order.
- jeremy8883 6y agoApologies, it looks like pre es6, they were unordered objects. But now there are rules that guarantee insertion order.