3 ms·
There is nothing as "a proper macro". There is proper meta-programming support or a badly design language.
by adev_ 8y ago
There is nothing as "a proper macro". There is proper meta-programming support or a badly design language.
- choeger 8y agoA macro is a metal-level abstraction. So proper macros require proper metaprogramming support. And, I would argue, the other way around.
- adev_ 8y agoAnd I would argue that a Macro is external language put on top of your language as a patch (hack), when your language is not expressive enough for genericity. Then yes, there is nothing as "proper" Macro. There is just an attempt to fix a limited language in the first place. And it is something that C++ arrived to solve ( not that badly ) currently.