You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 19, 2024. It is now read-only.
Types in the language have not been perfected yet, such as numbers (ints and floats) and arrays, though they are mostly functional.
Useage in variables
To use types in variables, you can prefix the variable name with the type, like C#:
let string a = "Hello World"; // a is of type string, and will be enforced
let b = "Hello World"; // b is of type string, though reassigning type check will not be re-enforced
let string? c = "Hello World" // c i sof type string, type checking is enforced but c is nullable
c = null; // Valid
let string[] c = []; // Not valid at the moment, type must be "any" for arrays
All of the types
Here are the list of types:
string
int
bool
float
array - Array of different values
object - key-value dictionary where key is string and key is anything
enummerable - This is an internal type, though can still be created, e.g. range expresisons