Expressions in Haxe define what a program does. Most expressions are found in the body of a method, where they are combined to express what that method should do. This section explains the different kinds of expressions. Some definitions help here:
A general name may refer to
- a type,
- a local variable,
- a local function or
- a field.
Haxe identifiers start with an underscore
_, a dollar
$, a lower-case character
a-zor an upper-case character
A-Z. After that, any combination and number of
Further limitations follow from the usage context, which are checked upon typing:
Haxe reserves the identifier prefix
_hx_ for internal use. This is not enforced by the parser or typer.
The following Haxe keywords may not be used as identifiers: