Multi-line comments
Roc does not support native multi-line comments like /*...*/
in other languages.
It's #
all the way:
# Line 1 # Line 2 # Line 3
TIP: Many editors provide shortcuts to (un)comment multiple lines at once, like Ctrl
+/
in vscode.
Why?
We need to use #
for compatibility with unix shebangs. This allows roc files to be run as a script with for example ./myscript.roc
.