Expand description
The reserved heads. Named constants rather than string literals scattered through the compiler:
a typo in "paramss" would otherwise be a silently-unmatched form.
Constants§
- ANNOT
- CALL
- CASE
- DECORATE
- DEF
- DO
- DOCUMENT
- DOT
- EXPECT
(expect <Bool>).- EXPECT_
CONTAINS (expect-contains <Str> <actor?>)—expect page contains "milk". The subject is always the rendered page, for the actor named or the test’s default one.- EXPECT_
EFFECT (expect-effect "<atom>" (none|once|times <n>|with <expr>))— §21.3 rule 4: verification is a query over what happened, not an expectation set in advance.- EXPECT_
FLOW (expect-flow <Type> <tier>).- EXPECT_
FOLD (expect-fold <list[Event]> <actor?>)—expect state == fold_of [ … ].- EXPECT_
PLACE (expect-place <name> <tier>)— answered without running anything.- EXPECT_
SNAPSHOT - EXPECT_
WIRE (expect-wire "previous.becki").- FIELD
- FN
- FOR
- GIVEN
(given <list[Event]> <actor?>)— the state, as the log that reaches it.- IDENTITY
identity = external(issuer="https://login.acme.com")— who authenticates this program’s clients (docs/10D6).- IF
- IMPL
- IMPORT
- KW_ARG
- LET
- LIST
- MACRO
- MAP
- MATCH
- MODEL
- MODULE
- NEWTYPE
- ON
- PARALLEL
parallel: block— a scope whose bindings are its children.- PARAMS
- PROPERTY
(property "name" (params …) (do …))— §11.10’s generated-input sibling oftest.- QUOTE
- RAISE
raise e— fail with a value. Performsraises(T), whereTis the value’s type.- RECORD
- RENDER
@render(client)— where a component’sviewruns, which is a different question from@on: placement says a tier may run it, rendering says which one does.- RESERVED_
FORMS - Names the checker matches as forms before it resolves anything.
- REST
*restinside a list — the tail binder of a list pattern (docs/33§33.5).- RETURN
- RETURNS
- ROW
row Name = a, b— a name for a bundle of effect atoms, usable in ausesclause.- SERVICE
- SET
- SPLICE
- STUB
(stub "<atom>" <value>)— §21.3 rule 2: name the effect, not the shape.- STUB_
ARMS (stub "<atom>" (arms (case …) …))— §21.3 rule 3. The arms have no scrutinee written because only the checker knows what performs the effect, and therefore what its argument is.- STYLES
- TEST
- TRAIT
- TRY
try: block— run the block and reify a failure as aResult[T, E].- TYPARAMS
- A
def’s type parameters —def map[T, U](…). Always present on adef, empty when the definition is monomorphic, so that the form has one shape (docs/32§32.7). - TYPE
- UI
- UNION
- UNQUOTE
- VAR
- VARIANT
- WHEN
(when <session|_> <command> …)— proposals through the realvalidate.- WHILE
- WILDCARD