Skip to main content

Comments

Comments can be written using //. For instance:

// The following computes the factorial of a number.
let
rec fact(v: int): int = if (v <= 1) then 1 else v * fact(v - 1)
in
fact(4)

Multi-line comments are not supported and must be written with each line containing // as in:

// The following computes
// the factorial of a number.
let
rec fact(v: int): int = if (v <= 1) then 1 else v * fact(v - 1)
in
fact(4)