Blocks and comments
Use indentation or braces for blocks; # starts a comment.
Indentation
pub fun greeting() -> Unit:
# A quiet hello.
sayLine("Hello")
Indentation
fun greeting() -> Unit:
# A quiet hello.
sayLine("Hello")
Braces
pub fun greeting() -> Unit {
# The same hello.
sayLine("Hello");
}
Braces
fun greeting() -> Unit {
# The same hello.
sayLine("Hello");
}