- changed status to open
Allow under-constrained function applications
Under-constrained function applications are applications where the function can be partially instantiated, but there are extra type variables in the return type that are un-constrained, meaning it would be valid no matter what they were. Expressions like this would partially instantiate the forall type so that it could be fully instantiated (with any type(s)) later.
Comments (8)
-
reporter -
repo owner eg, partially applied curried functions
-
reporter - changed status to open
This keeps getting re-closed because of a commit on the
partial-inst
branch, but this should be kept open until it's resolved on themaster
branch. -
reporter - changed status to resolved
-
reporter It turns out that this can lead to unsoundness in the cases where both mutation is involved and the introduced foralls are instantiated more than once with different types.
-
reporter - changed status to open
This must be solved in a way that does not allow the unsoundness mentioned in https://bitbucket.org/stchang/macrotypes/issues/16/allow-under-constrained-function#comment-27692493.
-
reporter This could still be improved by allowing type variables that can only be instantiated once.
-
repo owner - changed status to resolved
fix
#16→ <<cset 39be2ef9044c>>
- Log in to comment