by 435345345 · 2y ago · 0 comments
Whether you think S-expressions are superior probably depends on the use case you have in mind. And there's a good chance it's not the use case you should be optimizing for.
How in hell is that comparable to anything "Lisp-syntax"?
IOW, if you take Lisp expressions, add cosmetic syntactical changes like angle brackets and closing tags, then remove about 90% of functionality and cripple what's left, you'll have XML.
Cripple it further and you'll have JSON.
I don’t really follow this. What makes s-expressions a superset of markup languages?
What can’t you express in XML that you can with s-expressions?
For some specific tasks, certainly.
A tool I am developing for myself cripples the input format even more, because the more reduced the input is the easier it is to use for a specific task.
Could I have used a more powerful format? Sure, but then a format that allows too much is harder to use (especially when those extra features aren't needed).
The scope of the input should match the scope of the problem. I was only pointing out that, at the highest level, the format that allows everything is Lisp s-expressions. Everything else is a less-abled form of s-expressions. Some of those formats would have been best served by simply being s-expressions instead (like XML), while others (like JSON) serve a different purpose and don't need all those extra features.
But, also, there's plenty of uses of XML that are not "artcles and books". For example, Maven's pom.xml and log4j2.xml.