3 ms·
One reason is that JSON doesn't cleanly map to s-expressions. You can fake it with an arbitrary attribute, but there isn't a 1:1 mapping. The biggest reason is
by cheald 13y ago
One reason is that JSON doesn't cleanly map to s-expressions. You can fake it with an arbitrary attribute, but there isn't a 1:1 mapping.
The biggest reason is that HTML was designed to mark up human-readable documents, rather than to describe machine-readable documents. You can remove all the markup from a web page and easily read its contents; you can't do the same with JSON.
- cgore 13y ago(html (head (title "Hi there")) (body (h1 "Hi there") (p "S-expressions are " (b "a lot nicer") " than HTML/XML/etc.")))
- cheald 13y agoRight; my point is that XML is fully capable of representing s-expressions, but JSON is not, and much of what we write as HTML is effectively just sexps.