The syntax was a bigger problem than Lisp's syntax, though.
It's not easy to produce a language with a syntax that's good as daily use syntax, but is also not unwieldy as an AST. Lisp is one of the few relatively successful examples.
The syntax was a bigger problem than Lisp's syntax, though.
It's not easy to produce a language with a syntax that's good as daily use syntax, but is also not unwieldy as an AST. Lisp is one of the few relatively successful examples.
https://hexdocs.pm/elixir/macros.html
It is certainly possible to implement this sort of thing in other languages, I think, depending on the compilation or preprocessing setup
Yeah. XML and S expressions are pretty close to functionally equivalent. But once you've seen S expressions, XML is disgustingly clumsy.
2. rm *
3. JSON
4. rm -rf /
Also:
XML: eXtremely Murky Language
or Mindblowing
XML and HTML are attributed text, while S-expressions are more like a homogeneous tree
If you have more text than metadata, then they are more natural than S-expressions
e.g. The closing </p> may seem redundant, until you have big paragraphs of free form text, which you generally don't in programs
Doesn't win any price, or content worth of "I rewrote X in Y" blogpost, but does the job.