Hacker News new | past | comments | ask | show | jobs | submit login

You also need union types. But yes, you can make it work (the original lambda proposal for Java tried to do that). Of course, once you push it to the point where it does, then it is practically indistinguishable from having a single return value that is a discriminated union.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: