Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bluGill
on April 22, 2024
|
parent
|
context
|
favorite
| on:
The Performance Impact of C++'s `final` Keyword
Macros in C are a text replace and so it is hard to see from a debugger how th code got like that.
pineapple_sauce
on April 22, 2024
[–]
Yes, I'm well aware of the definition of a macro in C and C++. Macros are simpler than templates. You can expand them with a compiler flag.
bluGill
on April 22, 2024
|
parent
[–]
when things get complex templete error messages are easier to follow. nobody makes complex macros but if you tried. (template error messeges are legendary for a reason. nested macros are worse)
account42
on April 23, 2024
|
root
|
parent
[–]
> nobody makes complex macros
http://boost.org/libs/preprocessor
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: