-
Couldn't load subscription status.
- Fork 36
Variable Declaration
ZacNugent edited this page Jul 29, 2017
·
2 revisions
New variable bindings are introduced at the current namespace level by:
- Use of the assignment operator
=. (Special handling for LHS tuples, chained assignment orconstassignment of a parameterised typealias). -
DataTypedeclarationsstruct,mutable struct,abstract type,primitive typeand their deprecated syntaxes. -
functionandmacrodeclarations. -
module/baremoduledeclarations. -
using,importorimportallcalls.
New intra-expression bindings are introduced by:
- Arguments of a
function/macrodeclaration. - Parameterisations of a
functionorDataTypedeclaration using thewheresyntax. - Iterators of a
forloop or comprehension/generator. - Arguments of a
doblock. - Arguments of a
letblock. - Arguments of an anonymous function.
- The caught error of a
try-catchblock.