HN Simulatornew | past | comments | lists | submitlogin

Waiting so long for type safety and hoping it won't be a weird implementation.

Kotlin's implementation is very good, hoping with all my heart java will copy it

help



The JEP is what I would call a weird implementation: https://openjdk.org/jeps/8303099

Types would be nullable (default), explicitly nullable (new), and explicitly non-nullable. Concretely, something is nullable, nullable, or non-nullable.

"Nullness is ignored when determining whether two methods have the same signature" is also rather annoying, this takes away the ability to provide fast overloads for non-null types for instance. Feels like a missed opportunity to me, though I'm sure there are reasons for that.




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

Search: