Comment
Comments are sections of code which are ignored by the interpreter. You may use them to write notes describing your code or to aid people reading your code in understanding it.
Cheddar has C-style comments, you can delimit a comment either with //
or /* .. */
:
Comments can go wherever whitespace can go. This means comments do not work within strings.
A single-line comment //
, starts at any point in the line and continues until either a new line or the EOF (end of file).
Multiline comments are a little more special. They support nested comments which will elaborated more on. They will span until a matching */
has been found or the EOF.
Note::StabilityNested block comments may not work at the moment. If you encounter any problems, please report the given source code on github and it'll (hopefully) be fixed promptly.
Last updated