15 ms·
> So adding custom constructs to the language makes it stay familiar? There are rules and conventions for writing macros. If you follow them, their usage will
by klibertp 9y ago
> So adding custom constructs to the language makes it stay familiar?
There are rules and conventions for writing macros. If you follow them, their usage will be clear for anyone who knows the language - because the language itself includes a lot of macros and they all follow the same set of rules. Common Lisp, Clojure and Elixir are very good examples of this (with Racket taking it up to 11).
Of course, you can write macros which work and behave in unexpected, weird ways. In practice, though, you don't - why the heck would you?
- Groxx 9y agoBecause you don't use them in weird ways, surely, but whoever wrote this code did. ... which often includes yourself a year later.