3 ms·
Very excellent argument against C macros in any case.
by rtpg 12y ago
Very excellent argument against C macros in any case.
- deleted 12y ago[deleted]
- Elrac 12y agoYep. Even as a long time C hacker who knows to avoid the common pitfalls, I wasn't aware of just how many ways there are to botch up the use of macros. There are lots of cases where macros look like the obvious and elegant solution to a problem. Some of those cases are bugs waiting to happen.
- patrickmay 12y agoNicely summarized, indeed. His bemusement at the reaction of C++ proponents made me laugh: "But I did not think at the time that this would be controversial. I was sure that even the most rabid C++ fans would agree with me that the C++ macro system blows goat dick...."