Types
TYPE := i64 | f64 | bool | str | unit | list TYPE | opt TYPE | res TYPE TYPE | name (a record type)Types are written in prefix form with fixed arity, like expressions: res list i64 str is a result holding a list of i64 or a str error.
- Static typing with bidirectional checking. Function signatures are always explicit;
lettypes are inferred. - No implicit conversions, no subtyping, no overloading of user functions.
- Builtins may be generic (
lenworks on anylist T); user functions are monomorphic in v0.1.
Records
Section titled “Records”type point x:f64 y:f64The type name is its constructor, with one argument per field (point 1.0 2.0), and .x p reads a field.
Coming in v0.2
Section titled “Coming in v0.2”dict K V, a JSON value type, sum types with pattern matching, and user generics.