Keywords List

KeywordDescriptionInactive underIs function?Overloadable
trueboolean true literalno
falseboolean false literalno
letvariable declarationno
constconstant declarationno
ifif statementno
elseelse block of if statementno
switchmatchingno
doloopingno
while1) while loop
2) condition for do loop
no
untildo loopno
loopinfinite loopno
forfor loopno
in1) 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
privatemark function privateno_functionno
fn (lower-case f)function definitionno_functionno
Fn (capital F)create a function pointeryesyes
callcall a function pointeryesno
currycurry a function pointeryesno
thisreference to base object for method callno_functionno
type_ofget type name of valueyesyes
printprint valueyesyes
debugprint value in debug formatyesyes
evalevaluate scriptyesyes

Reserved Keywords

KeywordPotential usage
varvariable declaration
staticvariable declaration
beginblock scope
endblock scope
sharedshare value
eachlooping
thencontrol flow
gotocontrol flow
exitcontrol flow
unlesscontrol flow
matchmatching
casematching
publicfunction/field access
newconstructor
useimport namespace
withscope
modulemodule
packagepackage
threadthreading
spawnthreading
gothreading
awaitasync
asyncasync
syncasync
yieldasync
defaultspecial value
voidspecial value
nullspecial value
nilspecial value