Comments in Verse
A code comment explains something about the code, or the programmer's reason for why something is programmed the way it is. When the program runs, code comments are ignored.
1+2 # Hello 1+2 # Hello Copy full snippet(1 line long) |
single-line comment: Anything that appears between # and the end of line is part of the code comment. |
1<# inline comment #>+2 1<# inline comment #>+2 Copy full snippet(1 line long) |
inline block comment: Anything that appears between <# and #> is part of the code comment. Inline block comments can be between expressions on a single line and don’t change the expressions. |
| ``` | |
<# Block comments nest <# like this #> #> <# Block comments nest <# like this #> #> Copy full snippet(1 line long) |
nested block comment: Anything that appears between <# and #> is part of the code comment, and they can nest. This can be useful if you want to comment out some expressions in a line for testing and debugging without changing an existing code comment. |
| ``` |