let
A let
declaration gives a name to a
runtime immutable value.
A let
can only be declared within a function.
A let
declaration must have an initializer, and can have an optional type:
|
|
There are no restrictions for the
evaluation stage of
the initializer of a let
.
Unlike var
, a let
can be of a pointer type.