-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why do we need macros in the first place? #5
Comments
That's a really good question! The macro system of Take |
It's also important to mention that macros provide a way to force inlining, compared to languages like C++ where inline is more of a request and reuqires more attention as inline functions need to be defined within the header. |
Great write-up on macros but it doesn't answer a more fundamental question: why do we need macros in the first place?
It's because the syntax of the code doesn't support what you want or you want to repeat duplicated code that only changes a few things.
The text was updated successfully, but these errors were encountered: