Open brendanzab opened 7 years ago
Not sure how row polymorphism fits in with this though - I haven't really been able to find anything in the literature about it row polymorphic GADTs.
I am wondering if our unions should be closed by default, but that is a different discussion...
Closed by default seems like what one wants most of the time. No idea how row polymorphism works with GADTs either. GADTs do make inference undecidable however so possibly row-polymorphism would make it even more undecidable (not that the current type system is decidable either, but there is a risk of introducing to much undecidable constructs).
Would be lovely to have GADTs!
Eg.