16 ms·
Developers going without knowing what preprocessors do is… getting unfortunately common. Back in the olden days some people were using the C preprocessor on Jav
by arthur2e5 5y ago
Developers going without knowing what preprocessors do is… getting unfortunately common. Back in the olden days some people were using the C preprocessor on JavaScript. Being bilingual helps in programming too, everyone!
- nicoburns 5y ago> getting unfortunately common I would say fortunately common. The sooner the C preprocessor (and C itself for that matter) can die, the better for everybody.
- azinman2 5y agoCompiler macros are not unique to C, and are even in “modern” languages like Swift and NIM. They solve specific problems usefully that often have no other good solution. Don’t remove it, improve it!
- nicoburns 5y agoSure, but macros in other languages are hygienic rather than copy-paste systems, and are therefore much safer (and easier to use for complex use cases, although the C preprocessor might be easier for really simple cases).