Keywords

Jock currently supports the following keywords:

  • let: variable and function assignment

  • if: boolean decision

  • else: boolean decision, other branch

  • crash: end program

  • assert: positive assertion

  • object: core with named arms

  • compose: compose subjects

  • loop: loop start point, similar to do/|-

  • defer: unexecuted closure (trap/quote)

  • recur: loop recursion point, similar to continue

  • match: switch over type/Hoon ?+/?- or case/C switch, with _ as default case

  • eval: evaluate raw Nock

  • with: indicates predicate for compose

  • this: ., the current subject

Last updated