Skip to content

Statements

Shaye Garg edited this page Sep 29, 2021 · 1 revision

Statements can either evaluate an expression, or declare a variable:

<expr>;
let <ident>
let <ident> = <expr>;

Variables

When a variable is created, it is accessible by all scopes below it. Variables can be shadowed by other declarations.

Variables can also change their types after being created simply by assigning a different type to them.

Clone this wiki locally