witoldsz
06/18/2017, 10:28 PM!!
is ugly and can make bad, for me the hidden assumptions make my new and shiny Kotlin app throw NPE… (and I was supposed to see NPE ever again).
Maybe T!
types should have yet another dot-like operator, so it would be special and everyone could tell "aha, this is Java, nulls allowed".Andreas Sinz
06/19/2017, 7:03 AMT!
. I'd love to have a compiler-flag that turns T!
into T?
T!
from java yourself and you are still safe from NPEs