3 ms·
Getting rid of macros (and all of their well documented pitfalls) is good. Getting rid of the preprocessor and conditional compilation may not have been necess
by stephc_int13 4y ago
Getting rid of macros (and all of their well documented pitfalls) is good.
Getting rid of the preprocessor and conditional compilation may not have been necessary. (as the feature is needed anyway and have to be implemented in a different manner)
The thing is that comptime, even if better than macros because everything is written in the same language, might end up not being much better than C macros.
Many of the macro pitfalls still applies, if you think about it...