cqcallaw / newt

The newt programming language
GNU General Public License v3.0
12 stars 2 forks source link

Top-level type aliases #56

Open cqcallaw opened 8 years ago

cqcallaw commented 8 years ago

The idea of type aliases is currently used in the implementation of algebraic data types, and there seems to be great benefit in allowing this aliasing behavior at the top level--OCaml does this, and C's typedef is related as well.

Consideration must be given to the equability of types. That is, does a variable of type a that is an alias for int accept a value of type b which is also an alias for int?