Plain-language glossary#
Unfamiliar term? Follow its link for exact rules.
| Term | Meaning in this guide |
|---|---|
| Binding | A name attached to a value. := prevents reassignment; var allows a replacement value. |
| Scope | The part of a program where a name is visible. |
| Module | One .ms source file. It imports and exports individual declarations. |
| Type | A declared shape with named fields, such as a customer with a name and email. |
| Opaque type | A type whose fields stay hidden outside the file that declares it; other files use the functions it exports. |
| Nominal type | A type identified by its declaration. Two types with identical fields can still be different types. |
| Enum | A nominal tagged union declared with enum, with a fixed set of cases. A value is one case at a time and may carry that case’s data. |
| Interface | A declared set of operations a type satisfies by implementing the matching methods. |
| Generic parameter | A placeholder for a type, such as T in List[T]. |
| Bound | A requirement on a type parameter, such as supporting comparison or supplying a particular operation. |
| Equal | A standard interface for comparing values with ==, !=, or equals. |
| Hashable | A standard interface for computing lookup hashes. Map keys and set elements must also implement Equal. |
| Prelude | Names available without imports, including Optional, Result, Error, print, ok_or, and the standard equality interfaces. |
| Result | Either a success value or an expected error value. Callers can handle or forward the error. |
| Optional | Either a present value or null. Absence does not carry an error explanation. |
| Fault | A programming failure, such as a violated invariant. It ends the current operation after cleanup. |
| Effect | Something a function does beyond computing a value, such as printing, reading a file, or reading the clock. // ms: allow_effect permits one; a function with no such line is pure. See also effects in developer tooling
. |
| Closure | A function value that keeps the surrounding values it uses (its captures). |
| Owner | The binding, field, or collection slot responsible for dropping a value. A move transfers that responsibility; replacing an owned value drops the old one. |
| Borrow | Access to a value another holder owns, without taking it: shared (:=, plain argument) or exclusive (var). It ends at its last use. |
| Move | Ownership transfers to a new holder at the value’s last use. The old name is dead until reassigned. |
| Clone | .clone(): the only explicit, deep duplicate of an owned value. Numbers and other plain values copy implicitly. |
| Capture | A binding used from a surrounding function. Non-escaping closures borrow captures; escaping closures take ownership when created, following the move rules. |
| Alias | Another borrow of the same object. Closing a resource affects every alias. |
| Resource lifetime | How long a file, connection, or other external resource remains open and usable. |
| Promise | An operation with one result taken through wait(); stream reads may defer work until the wait. Dropping it cancels and waits for completion. |
| Stream | ReadStream[T] produces values over time; WriteStream[T] accepts them. Reads obtain the next item; built-in writers buffer immediately, and flushing follows the destination’s backpressure rule. Custom stream operations may wait. |
| Pipe | An in-memory reader and writer for transferring values between promises. |
| Capability | A value or interface parameter that grants access to an external operation without ambient authority. |
| Join | Wait until every started operation has finished, including its cleanup. |
| Cancel signal | A signal attached through PromiseOptions so a Cancel can request that several promises stop. |
| Cancellation checkpoint | A wait where cancellation can stop work and run cleanup. A loop that never waits must check a cancel signal itself. |
| Unwind | Leave active scopes and run their registered cleanup. |
| Shielded cleanup | Cleanup that can run despite the cancellation or deadline that ended ordinary work. |
| Host | The runtime entry point that runs a CLI application or handles HTTP requests. |
| Typed IR | The compiler’s internal program representation after names and types have been checked. |
| Lowering | Translating checked Manuscript operations into native code while preserving their behavior. |
| Conformance | Tests and evidence that the implementation follows the language’s rules. |
| Normative | Defines a required rule. Other explanations and examples must agree with it. |