Comments and prose lines

You will learn

Where each kind of note may stand, and the one line that breaks the parser.

A line that starts with a semicolon is prose: the compiler skips the rest of the line. Prose lines stand at the top level, between declarations. Two slashes start a comment anywhere, after code or inside a test. One trap: a semicolon alone on its line is not an empty prose line, it is a parse error, and the whole spec fails. Put a word after it, or leave the line empty.

Open the interactive lesson →