Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Language guide: comments

rollynoel edited this page · 5 revisions
Clone this wiki locally

Added by Rodrigo B. de Oliveira

Single Line Comments

Everything that comes after a hash character (#) or a double backslace (//) is ignored until the end of the line.

# this is a comment
// This is also a comment
print("Hello, world!") // A comment can start anywhere in the line

Multiline Comments

Multiline comments in boo are delimited by the /* and */ sequences. Just like in C. Unlike in C though, boo multiline comments are nestable.

/* this is a comment */
/* this
comment
spans mutiple
line */

/* this is a /*
                 nested comment */
    comment */

warningNested comments must be properly nested, however, or the parser will complain.

/* this is a /* syntax error */
Something went wrong with that request. Please try again.