Cyrus Lang provides a set of built-in types to cover most common programming needs. Here's an overview of the fundamental types available in the language.
Int
: 64-bit signed integerFloat
: 64-bit floating-point numberBool
: Boolean value (true or false)String
: UTF-8 encoded string of charactersChar
: Single Unicode characterArray<T>
: Fixed-size array of elements of type TList<T>
: Dynamic-size list of elements of type TSet<T>
: Unordered collection of unique elements of type TMap<K, V>
: Key-value pairs with keys of type K and values of type VOption<T>
: Represents an optional value of type TResult<T, E>
: Represents either a success value of type T or an error of type EThese built-in types form the foundation of Cyrus Lang's type system. In the following sections, we'll explore how to use these types effectively in your programs.