Language Reference
Keywords
Jock currently supports the following keywords:
let: variable assignment / Hoon=/, C variable declarationif: boolean decision / Hoon?:else: boolean decision, other branchcrash: end program / Hoon!!, Cexitassert: positive assertion / Hoon?>object: core with named arms / Hoon|%loop: loop start point, similar to Cdo/ Hoon|-defer: unexecuted closure (Hoon trap|.// Lisp quote)recur: loop recursion point, similar tocontinue/ Hoon%= $match: Hoon-styleswitchover type with_as default case /?+/?-switch, C-styleswitchover value with_as default case / Hoon nested?:eval: evaluate raw Nock / Hoon.*compose: compose subjects / Hoon=>with: indicates predicate forcomposethis:., the current subject / Hoon.funcfunction creation / Hoon|=lambdainline anonymous function closure creation / Hoon|=classclass/core creation with methods / Hoon|_printshow literal as a side effect / Hoon~&,+slog
Last updated