diprism / perpl

The PERPL Compiler
MIT License
10 stars 5 forks source link

Tuple member operator #43

Closed davidweichiang closed 2 years ago

davidweichiang commented 2 years ago

In #40 we are trying to implement type inference, but run into trouble with

define f x = x.1

because there's no such thing as "a tuple with at least one member."

Possible solutions:

ccshan commented 2 years ago

Yeah, the complication of making .1 polymorphic between projecting the first of 3 and projecting the first of 5 is best dealt with separately later

davidweichiang commented 2 years ago