Personally, I like the way macros are written now. While they are a
little harder to write, they are easier to read. Plus, the more
easier macros is to create, the more they will be abused. I've seen
C++ code that does not look like C++ anymore due to macro abuse.
Sorin Ionescu added a comment - 17/Apr/05 06:25 PM Personally, I like the way macros are written now. While they are a
little harder to write, they are easier to read. Plus, the more
easier macros is to create, the more they will be abused. I've seen
C++ code that does not look like C++ anymore due to macro abuse.
I don't think a feature should be harder than necessary, just to keep people from using it ...for a counterexample, look at Lisp (and Scheme), where macros are used almost as much as functions, and everything works out great.
dennis peterson added a comment - 01/Jun/05 03:37 PM I don't think a feature should be harder than necessary, just to keep people from using it ...for a counterexample, look at Lisp (and Scheme), where macros are used almost as much as functions, and everything works out great.
Have you looked at the implementation in Nemerele?