-
Notifications
You must be signed in to change notification settings - Fork 0
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>;
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.