Basic types
ChocLet provides basic types to describe a program. Those types are :
int
type desbribe a signed integerfloat
type describe a floating point typestring
type encoded characters listbool
type which can be either true or false
A ChocLet program is dynamicly typed, and the types are always infered from expressions.
let a = 10; // a is an int
// b is a bool, and c a string
let b = true, c = 'hi !';
a = false; // Error, we can't change the type of a variable