Non-Nullable type syntax
Kye
yeung.kye at pm.me
Mon Aug 17 17:29:56 UTC 2020
Hi,
This might be a ridiculous suggestion but why don't Java add a bang in the type declaration to indicate non-nullable and leave the current meaning nullable.
Like GraphQL schemas, and opposite to the Kotlin question mark.
Obviously this wouldn't break anything existing and would allow for the same benefits the aforementioned languages have. Then everything could unify to this language construct, no need for the not universally used @Nullable nor Optional.
Kind regards,
Kye
Sent from ProtonMail mobile
More information about the amber-dev
mailing list