Language reference · section 2
2. Terms
Use these terms exactly. Do not use a synonym.
| Term | Meaning | Do not write |
|---|---|---|
| pin | The language and its compiler. | Pin, PIN |
| source file | A file that ends in .pin. |
pin file, script |
| literate file | A file that ends in .pin.md. Its pin code is in fences. |
literate script |
| binding | A name that refers to a value. Made by =, mut, or const. |
variable |
| immutable binding | A binding that cannot be reassigned. This is the default. | constant |
| mutable binding | A binding declared with mut. It can be reassigned. |
variable |
| parameter | A name in a function declaration. | argument |
| argument | A value passed in a call. | parameter |
| block | Indented lines below a header that ends in :. |
body, section |
| decorator | A line that starts with @ and sits above a fn. |
annotation |
| contract | A requires or ensures line at the top of a function body. |
assertion |
| test | A test "name": block at the top level of a file. |
spec |
| stream | A @worker function whose body contains yield. |
generator |
| pool | The set of workers that serve one module. | cluster |
| shared binding | A top-level binding in a file that uses @wasm or @worker. |
global |
| compile error | An error that stops the compiler. | warning, lint |
| run-time error | An error thrown while the program runs. | exception |
| typed hole | A _ that stands for a value not yet written. |
placeholder |
A compile error is never a warning.