Keywords List

KeywordDescriptionInactive underIs function?
trueboolean true literalno
falseboolean false literalno
letvariable declarationno
constconstant declarationno
ifif statementno
elseelse block of if statementno
switchmatchingno
doloopingno
while
  1. while loop
  2. condition for do loop
no
untildo loopno
loopinfinite loopno
forfor loopno
in
  1. containment test
  2. part of for loop
no
continuecontinue a loop at the next iterationno
breakbreak out of loop iterationno
returnreturn valueno
throwthrow exceptionno
trytrap exceptionno
catchcatch exceptionno
importimport moduleno_moduleno
exportexport variableno_moduleno
asalias for variable exportno_moduleno
globalautomatic global moduleno_module, no_functionno
privatemark function privateno_functionno
fn (lower-case f)function definitionno_functionno
Fn (capital F)create a function pointeryes
callcall a function pointeryes
currycurry a function pointeryes
is_sharedis a variable shared?no_function, no_closureyes
is_def_fnis function defined?no_functionyes
is_def_varis variable defined?yes
thisreference to base object for method callno_functionno
type_ofget type name of valueyes
printprint valueyes
debugprint value in debug formatyes
evalevaluate scriptyes

Reserved Keywords

KeywordPotential usage
varvariable declaration
staticvariable declaration
sharedshare value
gotocontrol flow
exitcontrol flow
matchmatching
casematching
publicfunction/field access
protectedfunction/field access
newconstructor
useimport namespace
withscope
istype check
modulemodule
packagepackage
superbase class/module
threadthreading
spawnthreading
gothreading
awaitasync
asyncasync
syncasync
yieldasync
defaultspecial value
voidspecial value
nullspecial value
nilspecial value