3 ms·
The thing about macros, it's not about day to day, or even month to month, macros are about year to year. Macros are what let programers expand the language in
by blacktriangle 5y ago
The thing about macros, it's not about day to day, or even month to month, macros are about year to year. Macros are what let programers expand the language in ways the designers never even considered, thus increasing the timescale over which your code is maintainable.
For a recent example of why you wish your language had macros, look at function builders in Swift. When SwiftUI was first announced its syntax was a huge wtf, only later did we find out that a new language feature was enabling this syntax.
Now imagine if somebody outside of Apple had wanted to do this and had to convince the Swift dev team to incorporate this feature...good luck.
In any given lisp, function builders are a 10 minute project to make a macro.
- bjoli 5y agoCLOS was bolted on to a lisp a very long time ago, in a galaxy far far away. It felt and looked like a first class feature of the language.