4 ms·
Thanks for sharing. While the original C preprocessor can be a pain (but is still useful to have), additional pre-processors can add language features without
by jll29 5y ago
Thanks for sharing.
While the original C preprocessor can be a pain (but is still useful to have), additional pre-processors can add language features without abandoning the C standard and one's tool chain. One issue is that other developers need to either learn the dialect accepted by the preprocessor or make sense of its output.
Here I think some good decisions have been made:
Pros:
+ safer code
+ shorter/more concise code
Cons:
- learning curve of the pre-processor
Objective C and C++ started out as pre-processors, of course... ;)