Hacker News new | past | comments | ask | show | jobs | submit login

Macros were one of the biggest mistakes that C allowed, along with the undefined behavior.

Not allowing macros means a more standardized reference implementation, which translates to a more readable code overall.




Simple textual substitution macros are indeed pain.

Nicer, AST-level macros can be better, but can also be a pain (see Lisp, C++ for examples of either).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: