Adding a macro system to a compiled lisp seems really tricky. It's a ton easier when you have an interpreter that you can throw the macro definitions at.
Wilfred Hughes
1 Comment
@wilfredh there’s also way less of a point to having a macro system w/ interpreted
When I started out writing lisp, I found the distinction between foo and 'foo tricky to grasp. It bothered me that 'foo wasn't printed 'foo.
I think this is easier to learn when symbols are printed differently. If 'foo is printed user::foo it's easier to grasp what a symbol is.
Wilfred Hughes
Shared words: lisp, tricky, easier, when
Score: 95.8
@friend It seems like people find Zig comptime easier to reason about, hence the interest in introducing it to other languages.
That seems worth something. I still prefer Lisp/Clojure style macros over safer Scheme/Rust macros. Lisp macro implementations are closer to typical code.
Esy is a JS preprocessor that lets you define your own blocks: https://www.npmjs.com/package/esy-language
It's a macro system, but it doesn't overlap with function call syntax (unlike e.g. lisp). It makes it a little easier to spot macros, without a whole separate namespace (like foo! in Rust).