News for hackers. Stuff that matters.
Re:Things I Learned Reading Webkit’s UA Stylesheet by nicoburns on Monday July 19, 2021 @03:36PM (#27886477)
> 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.

Re:Things I Learned Reading Webkit’s UA Stylesheet by azinman2 on Monday July 19, 2021 @04:51PM (#27887120)
Compiler 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!

Re:Things I Learned Reading Webkit’s UA Stylesheet by nicoburns on Monday July 19, 2021 @05:23PM (#27887411)
Sure, 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).