HN2new | past | comments | ask | show | jobs | submitlogin

I'd never thought about this before in the context of Java. IIRC, Java can not have type-parameterized enums (i.e. generic enums), so a Maybe<T> isn't possible. I hope I'm wrong — it's been a while since I did much Java.


Well, you certainly can by expanding the parameterization manually like I did above. I think you're otherwise correct, though - I don't think Java will presently do it for you.




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

Search: