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

You don't really need `String|Integer`, for most usecases an isomorphic type that you can exhaustively pattern match on is more than enough, and sealed classes (along with the support in `switch` expressions) does exactly that.


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

Search: