Keywords

Keywords are reserved identifiers that have special meanings to the compiler. They can't be used as identifiers in your program

this article lists keywords.

Built-in Types

All keywords that can be used as a type.

Keywordshort Description
intthe int32 type
bytethe uint8 type
boolthe true or false type
uintptra unsigned int thats the size of a pointer.
intptra signed int thats the size of a pointer.
floatthe float32 type
float32An IEEE floating point number.
float64An IEEE floating point number.
charthe ASCII character type.
utf8the utf8 character type.
utf16the utf16 character type.
utf32the utf32 character type.
uint8an unsigned int thats the size of a one byte.
uint16an unsigned int thats the size of a two bytes.
uint32an unsigned int thats the size of a four bytes.
uint64an unsigned int thats the size of a eight bytes.
int8an signed int thats the size of a one byte.
int16an signed int thats the size of a two bytes.
int32an signed int thats the size of a four bytes.
int64an signed int thats the size of a eight bytes.
typeinforead type information.

type keywords

All keywords that can be used to make a type. | Keyword | short Description |--- | --- | enum | a group of constants trait | shareing behavior between types tag | add information about functions and classes dynamic | dynamically dispatched traits

memory keyword

All keywords that can that deals with memory. | Keyword | short Description |--- | --- | new | allocate memory drop | free memory. unsafe | lets you do unsafe operations. bitcast | reinterpret the bytes of a type. shr | make a shared pointer. unq | make a unique pointer.

varable types keywords

All keywords that can that deals changes how a varable works. | Keyword | short Description |--- | --- | static | global variables thread | global variables but one per thread. eval | compile time constant expression.

Compile Time Keywords

All keywords that can that lets you do stuff at compile time.

Keywordshort Description
compilerread compiler settings
invaildthrow a compile time error
typeget TypeInfo from an Type
typeofget TypeInfo from an expression
binduse TypeInfo as a type.
validcheck a statement has errors.

miscellaneous keywords

All keywords that dont fit in the other categories.

Keywordshort Description
forloop over a list of items
importimport a library
outa second output value
panicthrow a runtime error
useuse a namespace