ReferenceKeywords

Keywords

Complete list of JOEL keywords and reserved words.

Declaration Keywords

  • let - Variable declaration
  • const - Constant declaration
  • fn - Function declaration
  • module - Module declaration
  • import - Import statement
  • export - Export statement

Control Flow Keywords

  • if - Conditional statement
  • else - Else clause
  • elif - Else-if clause
  • while - While loop
  • for - For loop
  • match - Pattern matching
  • return - Return statement
  • break - Break from loop (coming soon)
  • continue - Continue loop (coming soon)

Type Keywords

  • i32, i64 - Integer types
  • u32, u64 - Unsigned integer types
  • f32, f64 - Floating-point types
  • str - String type
  • bool - Boolean type
  • list - List type
  • map - Map type
  • Result - Result type (coming soon)
  • Option - Option type (coming soon)

Advanced Keywords

  • actor - Actor declaration
  • contract - Smart contract declaration
  • component - UI component declaration
  • flow - Workflow declaration
  • deployment - Deployment declaration
  • cluster - Cluster declaration

Async Keywords

  • async - Async function
  • await - Await expression
  • spawn - Spawn task

Ownership Keywords

  • move - Move semantics
  • borrow - Borrow reference
  • defer - 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)

Next Steps