civboot / civlua

self contained software to build a minimalist dev environment.
http://civboot.org
The Unlicense
43 stars 0 forks source link

No Generics or Fns #2

Closed vitiral closed 9 months ago

vitiral commented 1 year ago

Generics and Fns were a fun experiment but they have several problems:

These things are all good, but are the domain for a type-safe language like Teal. In a type-safe language all non-concrete types (generics/interfaces/obj-model/etc) would be converted to Any for the metaty record (type-erasure).

Metaty's primary purpose is to make expressing and checking simple types easy while leaving complicated types for other solutions. It enables clean debugging, serialization and runtime (unit-test time) type checking.