3 ms·
Yes, this is the logical way of doing it without preprocessor. At the end of the day, this is pretty equivalent. Not sure if this is a net gain or not. Condit
by stephc_int13 4y ago
Yes, this is the logical way of doing it without preprocessor.
At the end of the day, this is pretty equivalent. Not sure if this is a net gain or not.
Conditional compilation is needed, moving the feature from the preprocessor stage to a lazy evaluator is probably costlier for the compiler and it might also be costlier for the IDE to highlight active/inactive parts of the code.
From the user point of view, this is very close, mostly a cosmetic change.