advanced - eviltoast
    • SpaceNoodle@lemmy.world
      link
      fedilink
      arrow-up
      11
      ·
      1 year ago

      Damn, you beat me to it.

      It’s common enough that it’s supported like a comment by numerous syntax highlighting schemes, and has the added benefits of guaranteeing that the code won’t be compiled as well as encapsulating any pre-existing block comments. Conversely, if (false) is total garbage.

    • Magister@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      this is what I’m doing too, so at least it’s not compiled and better than a /* */ as you can keep all the code intact in your #if 0