Alasca: Keywords

Published on 2018-09-07.

6 letters namespaces – declaring namespaces and bringing namespaces into scope:

  • module (unifies “object” and “package”)
  • import

5 letters type declarations:

  • trait (interfaces with implementation/typeclasses)
  • class (reference types)
  • value (value types)
  • alias (type aliases)
  • with (“extends”)

4 letters control flow:

  • case (works out nicely because the language unifies if-expressions and pattern matching)
  • then
  • else

  • loop (while loop)
  • then
  • else (?)

3 letters member declarations:

  • fun (function)
  • let (immutable binding)
  • var (mutable binding)

Unused alternatives:

6 letters “invasive” control flow (unlikely to be used):

  • return
  • throws

2 letters control flow (alternative to the 4 letter version, unlikely to be used):

  • if
  • do
  • or