Comments
Inline comments
Inline (single-line) comments allow narrative on only one line at a time. Single-line comments can begin in any column of a given line and end at a new line or carriage return. Inline comments can be added with double-slashes.
def main() -> field {
field a = 42; // this is an end of line comment
// this is a full line comment
return a;
}
Multi-line comments
Multi-line comments have one or more lines of narrative within a set of comment delimiters. The /*
delimiter marks the beginning of the comment, and the */
marks the end. Any content between those delimiters is considered a comment.
/*
This is a multi-line comment
written in more than just one line.
*/
def main() -> field {
return 42;
}