Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Single Line Comments

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

Code Block
# 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.

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

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

(warning) nested comments must be properly, hmmmm, nested or the parser will complain

Code Block
/* this is a /* syntax error */