by smabie · 2y ago · 0 comments
The heavy line noise in service of an easy to understand macro system just isn't worth it (moreover, a lot of languages have advanced macros these days without S-expressions).
Looking back, I think I was so into Lisp because I just wanted to feel superior and better than the dirty Java or Python programmers?
Just curious: what macro system were you using with Racket? There are, like, 3 big ways to build macros in Racket:
1. Macros by example with `syntax-rules`. This was taken from Scheme and is the original hygienic-by-construction system. Limited in power though.
2. `syntax-case`, which gives you full procedural macros but is a little unwieldy at times.
3. `syntax-parse`, the glorious, most powerful macro system of the three.
I know, it’s confusing.
tbh, Paul Graham's articles on Lisp have done more harm than good to programmers. Calling Lisp a "secret weapon" that supercharges your startup and gives you immense competitive advantage is unrealistic and lacks concrete evidence.
Since then, the landscape has changed.
With great power comes great responsibility, and most people don't want that responsibility.
Lisp has a higher barrier to entry compared to Python or Rust or other languages available. For that simple reason alone, it's not used. None of these imagined reasons about the theoretical power or anti-power of macros, or being a wizard, or whatever are part of the calculus of choosing a language.