-
Notifications
You must be signed in to change notification settings - 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 orconst
assignment of a parameterised typealias). -
DataType
declarationsstruct
,mutable struct
,abstract type
,primitive type
and their deprecated syntaxes. -
function
andmacro
declarations. -
module
/baremodule
declarations. -
using
,import
orimportall
calls.
New intra-expression bindings are introduced by:
- Arguments of a
function
/macro
declaration. - Parameterisations of a
function
orDataType
declaration using thewhere
syntax. - Iterators of a
for
loop or comprehension/generator. - Arguments of a
do
block. - Arguments of a
let
block. - Arguments of an anonymous function.
- The caught error of a
try
-catch
block.