Keywords
Complete list of JOEL keywords and reserved words.
Declaration Keywords
let- Variable declarationconst- Constant declarationfn- Function declarationmodule- Module declarationimport- Import statementexport- Export statement
Control Flow Keywords
if- Conditional statementelse- Else clauseelif- Else-if clausewhile- While loopfor- For loopmatch- Pattern matchingreturn- Return statementbreak- Break from loop (coming soon)continue- Continue loop (coming soon)
Type Keywords
i32,i64- Integer typesu32,u64- Unsigned integer typesf32,f64- Floating-point typesstr- String typebool- Boolean typelist- List typemap- Map typeResult- Result type (coming soon)Option- Option type (coming soon)
Advanced Keywords
actor- Actor declarationcontract- Smart contract declarationcomponent- UI component declarationflow- Workflow declarationdeployment- Deployment declarationcluster- Cluster declaration
Async Keywords
async- Async functionawait- Await expressionspawn- Spawn task
Ownership Keywords
move- Move semanticsborrow- Borrow referencedefer- Defer cleanup
Special Keywords
self- Self reference (in actors)state- State variable (in actors/contracts)signal- Reactive signal (in components)view- View template (in components)
Reserved for Future Use
class- Class declaration (coming soon)trait- Trait declaration (coming soon)impl- Implementation (coming soon)enum- Enumeration (coming soon)