Fuzion Logo
flang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion LanguageTutorialConstants

Constants

Integer constants

Support for integer constants is currently limited, constants such as 1234 default to type i32, but this will likely change to become i64.

Currently, there is no magic to automatically convert constants to other integer types such as i8 or u32.

Float constants

Not supported yet.

String constants

Strings are enclosed by double quotes ". Currently, no escapes such as \n are supported.

bool constants

Are supported through the standard library features true and false, which return TRUE or FALSE, respectively, as a value of choice type bool







Note that you typically should not use TRUE or FALSE directly, since they typically result in wrong types when used for type inference.







More details on this is given in section Choice Types .


next: Calls