Language Expansion

Primitives (dynamic)

  • number, bool, string, nil
  • runtime type errors are OK

Variables

  • let, var = mutable
  • const = immutable
  • block scoped

Statements

  • declarations, assignment, expr
  • if/else, while, return, blocks

Functions

  • fn name(params) { ... }
  • top-level only (no closures yet)

Truthiness

  • false and nil are falsey
  • everything else is truthy
1 / 1
Use arrow keys or click edges to navigate. Press H to toggle help, F for fullscreen.