News for hackers. Stuff that matters.
Re:Anecdotally, Programmers Dislike "Reduce" by gg582 on Thursday September 17, 2026 @03:18AM (#49737491)
Some conventions are socially made... In C, some uses

#if 0

    these_lines_are();
    not_executed();
#endif

but most of the cases people just use

/* comments

* these_lines_are();

* not_executed();

*

* end comment */

Then, why?

#if 0

#endif

looks clear and it definitely says how a computer skips many lines.

But we just don't use it because it implies low-level knowledge "that every C developers have"

Re:Anecdotally, Programmers Dislike "Reduce" by draven on Thursday September 17, 2026 @04:11AM (#49737829)
My C is really rusty but aren't those different ? If using #if/#endif the compiler won't even see the comments.
Re:Anecdotally, Programmers Dislike "Reduce" by gg582 on Monday September 21, 2026 @02:50AM (#49783848)
Yep that's right. Using #if/#endif excludes whole lines(so compiler won't see any lines). And this difference can prevent when struggling with nested comments :)