4 ms·
Your note about octal and binary literals sort of goes back and forth compared to the idea of date literals for me. Because octal and binary literals are suppor
by sopooneo 10y ago
Your note about octal and binary literals sort of goes back and forth compared to the idea of date literals for me. Because octal and binary literals are supported in vanilla javascript, but are not explicitly supported in JSON. However, throwing them in seems like only a minor transgression since they are native to javascript, and are effectively just another representation of a number.
On the other hand, the date literal you suggest is not part of javascript. And on that note, why not just use timestamps for dates in json?