The Type System - Paramecium13/LSN GitHub Wiki
LSN is a statically typed language, every variable, parameter, field and property has a type that is known at reification time. ...
Built in Types
Simple Types
Integers
Doubles
Strings
Booleans
Collection Types
Vectors
Vectors contain a fixed number of objects of a specified type. Their contents cannot be modified. They are passed by reference. Vectors should not be used to store instances of a mutable type (e.g. a struct type or a list type).
Lists
Lists contain a variable number of objects of a specified type. Their contents can be modified. They are passed by reference.
User Defined Types
Records
Records are a collection of values that are stored together. The contents of an instance of a record type cannot be modified. Because they are immutable, they are passed by reference.
Structs
Structs are similar to records in that they also store values but differ in that they are mutable and are passed by value.