Memorytaco / t-lang

This is now an experimental prototype of a system programming language based on MLFe type system.
1 stars 1 forks source link

add sugar for type #16

Closed Memorytaco closed 10 months ago

Memorytaco commented 1 year ago

We need to add sugar conversion between a formal representation and user representation of type.

let's say we have a type forall a. (a, a). Its formal rep is forall a (b ~ (a, a)). b. The second rep is confusing and not intuitive and user will be forced to fully understand MLF to understand formal rep of type. To avoid this, we need to add sugar transformation between Graphic type and Syntactic type.

Memorytaco commented 10 months ago

This is done by a traversal in graphic type representation. :type command shows simplified type.