Single line comments nicely avoid the nesting problem. I can write: # # foo without any issues, enabling me to comment out a region that contains a comment. Multiline comments are much more awkward, as many languages don't support nesting: /* /* foo */ */