logoalt Hacker News

epstoday at 10:38 AM1 replyview on HN

Nice.

Another neat comment-based construct is the good old:

  //*
     foo
  /*/
     bar
  //*/
It yields 'foo' as is, and 'bar' if the first slash is removed.

Replies

pwdisswordfishytoday at 10:53 AM

It's not as needed in C given that you can use #if 1

It is handy in C derivatives, though.