-
Notifications
You must be signed in to change notification settings - Fork 0
The Type System
LSN is a statically typed language, every variable, parameter, field and property has a type that is known at reification time. ...
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 contain a variable number of objects of a specified type. Their contents can be modified. They are passed by reference.
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 are similar to records in that they also store values but differ in that they are mutable and are passed by value.