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!!
, Cexit
assert
: 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-styleswitch
over type with_
as default case /?+
/?-
switch
, C-styleswitch
over value with_
as default case / Hoon nested?:
eval
: evaluate raw Nock / Hoon.*
compose
: compose subjects / Hoon=>
with
: indicates predicate forcompose
this
:.
, the current subject / Hoon.
func
function creation / Hoon|=
lambda
inline anonymous function closure creation / Hoon|=
class
class/core creation with methods / Hoon|_
Last updated