2 ms·
> it means that you only need to know a subset of the features the language provides to become productive. That only works when you work by yourself (or in a s
by kazinator 9y ago
> it means that you only need to know a subset of the features the language provides to become productive.
That only works when you work by yourself (or in a small team to whom you can dictate the language subset), and without any third party code.
> But 95% of programmers don't need to solve such problems and can do very well without using macros.
Languages that have great macro systems use them to bootstrap themselves. So when you use the standard, documented features, you're using macros.
E.g. if you're writing in Lisp and your file begins with (defun ..., you've just used a macro.
- pkd 9y agoSure, you can use them as a consumer all the time, but that doesn't mean that you need to write your own to program in Lisps, for instance. For the few that do need it, it's a worthy tool to have.