4 ms·
going off-road: more and more I wish for non lisps in s-exp syntax, so you can reuse pattern matching on ast and other niceties.
by agumonkey 13y ago
going off-road: more and more I wish for non lisps in s-exp syntax, so you can reuse pattern matching on ast and other niceties.
- S4M 13y agoJulia has that: http://docs.julialang.org/en/latest/manual/metaprogramming/ http://docs.julialang.org/en/latest/manual/metaprogramming/
- cjo 13y agothing is if you take a modern language and add s-expressions, then you may as well add macros and at that point there's a good chance it just became a lisp If you go here (http://www.paulgraham.com/icad.html http://www.paulgraham.com/icad.html) and search for the heading 'What Made Lisp Different' it may better explain it
- klibertp 13y agoYou don't need s-exps to have pattern matching on ast or macros, especially hygienic, pattern based ones. There's sweet.js and macros for python as examples. All you really need is an API for manipulating AST, be it built-in or 3rd party. S-exps are especially nice if you want defmacro-style macros, but I don't believe they should be used very much.