types
The following kinds of types exist in KDLScript.
- nominal types
- structural types
- builtin primitives
- integers (
i8
,u128
, ...) - floats (
f16
,f32
,f64
,f128
, ...) bool
- your old pal the boolean (TriBool support TBD)ptr
- an opaque pointer (void*
), used when you're interested in the value of the pointer and not its pointee (unlike&T
)
- integers (
All of these types can be combined together as you expect, and self-referential types do in fact work!