Skip to main content

Keywords

Reserved identifiers, grouped by role. None of these can be used as a variable, parameter, or type name.

Declarations

KeywordPurpose
letImmutable binding
varMutable binding
funFunction declaration
typeType declaration
packagePackage declaration
exportExport a top-level name from a package
importImport a package or FFI module
externDeclare an external (FFI) function or variable

Control flow

KeywordPurpose
ifConditional
elseAlternative branch
thenInline if expression
forLoop over a range or collection
inMembership / iteration
whileLoop while a condition holds
breakExit a loop
continueSkip to the next iteration
returnReturn from a function
matchPattern-match expression
isType test in an expression or pattern

Errors

KeywordPurpose
expectAssertion (also used inside test blocks)
panicAbort with an unrecoverable error
tryBegin an error-recovery block
catchRecover from a try

Agents and streams

KeywordPurpose
agentAgent declaration
streamStream declaration
onEvent handler
emitEmit an event
intentExpose a callable endpoint

AI generation

KeywordPurpose
generateOpen a generation block (generate text, generate embedding)
modelModel configuration block
toolsFunction tools list inside a generate block

Data

KeywordPurpose
loadLoad a CSV / JSON / JSONL / YAML file
saveSave a list to a file
fromBegin a query
whereFilter clause
selectProjection clause
join, left joinJoin clause
group byAggregation clause
sort bySort clause
skip, takeSlice clauses
toUsed with save
asType or format coercion (used in load, save, as json)

Testing

KeywordPurpose
testTest block

Literals

KeywordPurpose
trueBoolean true
falseBoolean false
nilThe absent value

Set operators

KeywordPurpose
unionSet / list union
intersectSet / list intersection
exceptSet / list difference
allUsed with union all to keep duplicates

Fetch

KeywordPurpose
fetchHTTP fetch expression
withOptions block on a fetch expression

Reserved but not yet used

Reserved for forthcoming features and unavailable as names today:

async, await, defer, interface, trait, where (as a type-bound), yield.

Next

  • Operators for the operator table.
  • Built-ins for prelude functions.
  • Manual for tutorial-style introductions to each concept.