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

> (you can either assume all Java calls are non-null unless checked, assume all Java calls are nullable and force checking, or trust annotations; all these approaches suck in their own way)

Agreed, which is why Kotlin has explored all of these options and ending up implementing neither.

Look up "platform types".



Oh my god. I didn't think it was possible to do worse than all three approaches I mentioned, but they found a way.

> Platform types are non-denotable, meaning that one can not write them down explicitly in the language.




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

Search: