Skip to content

Comments

Comments help explain intent without changing how the program runs.

Calibre supports single-line comments with //.

const main := fn => {
// This line prints a greeting.
print("Hello");
};

For longer notes, use block comments with /* and */.

/*
This function doubles a number.
You can spread a block comment over multiple lines.
*/
const double := fn (x : int) -> int => x * 2;

Comments are useful for documenting tricky logic, leaving reminders, or temporarily disabling code while experimenting.