1.4 Ключевые слова
Зарезервированные (нельзя использовать как имена):
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
Контекстные (ключевые только в указанной конструкции, иначе — обычные имена):
| Слово | Где |
|---|---|
it | шаг цепочки или пайплайна (§8.4, §10.6) |
within, retry, backoff | суффиксы цепочки (§8.4) |
on, durable, best_effort, on_error | шаги пайплайна (§10.6) |
sharded, by | объявление актора (§12.5), топика (§10.5) |
from, where, order, desc, asc, take, skip, load, group | выражение запроса (§5.9) |
allow, deny, if, unless | политика (§13.4) |
role, serves, hosts, runs, replicas, needs, expose, seeds, assign, journal, shards, replication, auth | объявление кластера (§12.1) |
profile | объявление конфига (§14.1) |
once, times, then, always | mock (§18.3) |
seeds, variant, split, metric, guard | тесты (§18) |
Дополнительно зарезервированы: assert attr dyn fixture init open. Ещё контекстные слова:
| Слово | Где |
|---|---|
pure, io, net, db, time, rand | список эффектов после возвращаемого типа (§6.2) |
invariant | тело data (§4.2) |
requires, ensures, old, result | контракты функции (§6.7) |
literal | comptime literal fn (§15.3) |
escaping | тип функции (§5.7) |
inline | перед for (§15.1) |
recv, send, to, after | ветки select (§8.7) |
activate, passivate | on … в акторе (§12.5) |
with | заголовок теста (§18.1) |
where | ограничения дженериков, уточнения, фильтр for, запросы |
infixl, infixr, infix, prefix | объявление оператора (§5.3) |
См. также
- 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
Исходник: docs/spec/oxl-standard.md