logoalt Hacker News

The_Colonel12/09/20241 replyview on HN

Just store the ISO9601 date/time in a string. No need for special support on the format level.


Replies

eadmund12/09/2024

Why have numbers, true, false or null then? Why not only support strings?

    {"foo": "2", "bar": "null", "baz": "false"}
I’m not really being facetious: that’s what canonical s-expressions did:

    ((foo 2) (bar null) (baz false))
show 2 replies