Skip to content

Keywords Reference

Keywords

  • let - Variable declaration
  • fn - Function definition
  • if - Conditional
  • else - Alternative branch
  • while - While loop
  • for - For loop
  • in - For loop range
  • return - Return from function
  • print - Print output
  • true - Boolean true
  • false - Boolean false
  • struct - Define struct
  • impl - Implementation (reserved)
  • import - Import module
  • from - Import from (reserved)
  • try - Try block
  • catch - Catch errors
  • throw - Throw error
  • break - Break from loop
  • continue - Continue loop
  • match - Pattern matching
  • case - Match case
  • default - Default case
  • async - Async (reserved)
  • await - Await (reserved)