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.)


# Nim supports single-line comments
 
var x = 0 ## Documentation comments start with double hash characters.
 
var y = 0 ## Documentation comments are a proper part of the syntax (they're not discarded by parser, and a real part of AST).
 
#[
There are also multi-line comments
Everything inside of #[]# is commented.
]#
 
# You can also discard multiline statements:
 
discard """This can be considered as a "comment" too
This is multi-line"""
 