News for hackers. Stuff that matters.
Re:Three Things I Love About C by devinj on Thursday May 13, 2010 @12:22AM (#1343278)
Macros are better because of performance? That's premature optimization if I ever saw it. OS-specific configuration / function definition is not going to be the performance bottleneck on pretty much any app I've seen. Maybe if you're writing a CGI program where it's run many times and has to do this setup each time, but then CGI is dead for a reason. Macros have plenty of problems that result in weird edge-case behavior, and I'd really rather not have them.

Oh, and finally, they aren't unique to C. You can use the macro preprocessor on any source code you like.

There are no comments on this comment yet.