logoalt Hacker News

RetroTechie • yesterday at 7:46 PM • 1 reply • view on HN

Comments shouldn't affect code which executes at all, right?

So... please tell us more!


Replies

svnt • yesterday at 8:59 PM

If you put a trailing backslash in a // comment you can comment out the next line inadvertently.

If you put a // comment in a multi-line macro you can comment out the rest of the macro, not just that line.

There are probably lots of other ways but I would guess it hinges on accidentally using a comment to remove or introduce code that is not apparent.