Literals
Numeric literals
Floats and
Floating point literals
Floating point values are of double (64 bit) precision. Literals should always be expressed as decimals. E.g. 0.0,0.42,4.2
Array literal
An array literal is an optional set of values defined between brackets.
The simples array literal is the empty array: [].
The type of the resulting arrays is deduced from contextual information (i.e.
i. the receiver type of assignments,
ii. the type of the expected parameter when passed as a parameter
iii. the return type of the operation when used as a return value).
When type deduction is not possible, the literal may be prefixed by a type. E.g. Object[...] or Base[...]