Built-in schemas#
The built-in module#
Built-in module#
Every compilation imports the built-in module, and no program declines it.
The module declares the built-in schemas and nothing else. It is not a library: no import names it, no as alias renames it, and no dotted name reaches into it. Its schemas are in scope by their bare names in every file.
(Spec: [LIMP.12.1])
The built-in schemas#
Schema |
Written into the artefact |
|---|---|
always |
|
always |
|
when the program contains a |
|
always |
A built-in schema the program does not use is left out of the artefact. A rule that matches CallError in a program with no call compiles and is inert.
(Spec: [LIMP.12.2])
Taken names#
A built-in schema’s name is taken in every file, and no alias resolves the collision.
Name |
Code |
|---|---|
|
|
|
|
Refused with DS_VALIDATE_RESERVED_TYPE_NAME
schema TypeError:
id: String
Internal scope#
ComputationError and TypeError are internal, and no other schema can be.