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.
Keyword | short Description |
---|---|
int | the int32 type |
byte | the uint8 type |
bool | the true or false type |
uintptr | a unsigned int thats the size of a pointer. |
intptr | a signed int thats the size of a pointer. |
float | the float32 type |
float32 | An IEEE floating point number. |
float64 | An IEEE floating point number. |
char | the ASCII character type. |
utf8 | the utf8 character type. |
utf16 | the utf16 character type. |
utf32 | the utf32 character type. |
uint8 | an unsigned int thats the size of a one byte. |
uint16 | an unsigned int thats the size of a two bytes. |
uint32 | an unsigned int thats the size of a four bytes. |
uint64 | an unsigned int thats the size of a eight bytes. |
int8 | an signed int thats the size of a one byte. |
int16 | an signed int thats the size of a two bytes. |
int32 | an signed int thats the size of a four bytes. |
int64 | an signed int thats the size of a eight bytes. |
typeinfo | read 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.
Keyword | short Description |
---|---|
compiler | read compiler settings |
invaild | throw a compile time error |
type | get TypeInfo from an Type |
typeof | get TypeInfo from an expression |
bind | use TypeInfo as a type. |
valid | check a statement has errors. |
miscellaneous keywords
All keywords that dont fit in the other categories.