1.4 Keywords
Reserved (cannot be used as names):
actor as atomic await blocking break cluster comptime config const continue data defer dep dynamic else embed enum export extern fail false fn for if impl import in interface is lazy let loop match mock move msg none op operator override pipeline policy provide pub respond return rpc saga scope select self Self service spawn static super test topic true type undo unsafe use var while yield
Contextual (keywords only in the stated construct, otherwise ordinary names):
| Word | Where |
|---|---|
it | a step of a chain or pipeline (§8.4, §10.6) |
within, retry, backoff | chain suffixes (§8.4) |
on, durable, best_effort, on_error | pipeline steps (§10.6) |
sharded, by | actor declaration (§12.5), topic declaration (§10.5) |
from, where, order, desc, asc, take, skip, load, group | query expression (§5.9) |
allow, deny, if, unless | policy (§13.4) |
role, serves, hosts, runs, replicas, needs, expose, seeds, assign, journal, shards, replication, auth | cluster declaration (§12.1) |
profile | config declaration (§14.1) |
once, times, then, always | mock (§18.3) |
seeds, variant, split, metric, guard | tests (§18) |
Additionally reserved: assert attr dyn fixture init open. More contextual words:
| Word | Where |
|---|---|
pure, io, net, db, time, rand | the effect list after the return type (§6.2) |
invariant | body of data (§4.2) |
requires, ensures, old, result | function contracts (§6.7) |
literal | comptime literal fn (§15.3) |
escaping | function type (§5.7) |
inline | before for (§15.1) |
recv, send, to, after | select branches (§8.7) |
activate, passivate | on … in an actor (§12.5) |
with | test header (§18.1) |
where | generic constraints, refinements, the for filter, queries |
infixl, infixr, infix, prefix | operator declaration (§5.3) |
See also
- actor
- as
- blocking
- break
- comptime
- config
- continue
- dynamic
- embed
- export
- extern
- false
- for
- import
- lazy
- loop
- mock
- op
- operator
- override
- pipeline
- policy
- respond
- return
- saga
- select
- Self
- super
- topic
- true
- undo
- use
- while
- yield
- assert
- attr
- dyn
- fixture
- init
- open
- it
- within
- retry
- backoff
- on
- durable
- best_effort
- on_error
- sharded
- by
- from
- where
- order
- desc
- asc
- take
- skip
- load
- group
- allow
- deny
- unless
- role
- serves
- hosts
- runs
- replicas
- needs
- expose
- seeds
- assign
- journal
- shards
- replication
- auth
- profile
- once
- times
- then
- always
- variant
- split
- metric
- guard
- pure
- io
- time
- rand
- invariant
- requires
- ensures
- old
- result
- literal
- escaping
- inline
- recv
- send
- to
- after
- activate
- passivate
- with
- infixl
- infixr
- infix
- prefix
Source: docs/spec/oxl-standard.en.md