Hacker News new | ask | show | jobs
by adev_ 2716 days ago
There is nothing as "a proper macro". There is proper meta-programming support or a badly design language.
1 comments

A macro is a metal-level abstraction. So proper macros require proper metaprogramming support. And, I would argue, the other way around.
And 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.