Task

Show all ways to include text in a language source file
that's completely ignored by the compiler or interpreter.



Related tasks

   Documentation
   Here_document


See also

   Wikipedia
   xkcd (Humor: hand gesture denoting // for "commenting out" people.)


void main() {
    // A single line comment.
 
    /* This is a simple C-style comment that can't be nested.
    Comments mostly work similar to C, newlines are irrelevant.
    */
 
    /+ This is a nestable comment
      /+ See?
      +/
    +/
 
    /// Documentation single line comment.
 
    /**
    Simple C-style documentation comment.
    */
 
    /++
    Nestable documenttion comment.
    +/
}