Primitives
Fifteen types are built into the language rather than declared in it. They cover
numbers, text and truth values, the absence of a value, any, which holds a value
of any type, and void, which holds nothing at all.
Their names are not keywords, so a local or a field may take one, though a type declaration may not.
- Null: the absence of a value, and which types accept one.
- Numbers: signed and unsigned integers, floating point, suffixes and coercion.
- Text: strings and characters.
- Any: a value of any type, with nothing reachable through it.
- Booleans:
trueandfalse, and the operators over them. - Void: what a function returns when it returns nothing.