3 ms·
This is better in a sense that the user doesn't need to learn something new except for the language the user is programming in and python (even though theoretic
by pcr910303 8y ago
This is better in a sense that the user doesn't need to learn something new except for the language the user is programming in and python (even though theoretically manipulating the AST will be less error prone, etc...). I use javascript everywhere, but I still didn't learn how to make babel plugins/macros because copy/pasting snippets of code two or three times is easier than learning.
It's a pity that people still couldn't make a language that has a super intuitive macro system like lisp (homoiconicity, the AST is the language), and a intuitive syntax like python.
I actually believe that this is partly because most Lisp users don't like the idea of new syntax and that all major lisps (CL, Clojure, Scheme) doesn't have syntax sugar as default.
I would appreciate if a new CL tutorial appears that uses infix notation with reader macros(`#I`) or a Clojure tutorial that uses the infix package(https://github.com/rm-hull/infix https://github.com/rm-hull/infix).
It will be great to beginners because 1. they wouldn't be scared of prefix notation and 2. it shows (a part of) what lisp macros can do (introduce syntax sugar in a way that is natural to the language).