Re:Struct Iteration Through Abuse of the C Preprocessor
by uxcn on Tuesday October 13, 2015 @03:01PM
(#10382677)
Python is definitely a better syntax to write meta-programs than the pre-processor, but you still have the issue of the additional step/tool. Anything that depends on the generated code depends on the step which, if it's missed, can lead to non-good things.
[ Parent
| on HN ]
Re:Struct Iteration Through Abuse of the C Preprocessor
by Kristine1975 on Wednesday October 14, 2015 @02:50AM
(#10385326)
Sure. But you do test your changes, don't you? ;-) So if you forget to run cog after making a change to the meta-program, you should notice right away.
But it still is a cludge. It would be better if C/C++ had a better preprocessor.