3 ms·
To make parsing easier? By the same logic why differentiate between numbers, strings, and booleans?
by azinman2 13y ago
To make parsing easier? By the same logic why differentiate between numbers, strings, and booleans?
- randallsquared 13y agoBut why stop at dates? What about all the other useful things we could put in, DOM elements and and sets and synchronization clocks...
- tudborg 13y agoBecause those are javascript primitive types, which json is built around in the first place. Date is not a javascript primitive, and is therefore not included. If we need to follow that logic (to include useful non-primitives) we would end up with a clusterfuck of a spec that noone would want to implement.
- tudborg 13y agoBecause those are javascript primitive types, which json is built around in the first place. Date is not a javascript primitive, and is therefore not included. If we need to follow that logic (to include useful non-primitives) we would end up with a clusterfuck of a spec that noone would want to implement.
- tudborg 13y agoBecause those are javascript primitive types, which json is built around in the first place. Date is not a javascript primitive, and is therefore not included. If we need to follow that logic (to include useful non-primitives) we would end up with a clusterfuck of a spec that noone would want to implement.