Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yeah, the if/else cascades that you need when there are lots of cases are definitly not on the most elegant side. But maybe some support for type guards in combination with switch/case will follow. In can live with the current situation, because it isn't really better in most other programming languages without sum types (you mostly need some instanceof followed by a type cast).


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

Search: