3 ms·
“Unannotated types are considered not-nullable” Defaulting to not-nullable is a great idea. Much less boilerplate.
by melling 4y ago
“Unannotated types are considered not-nullable”
Defaulting to not-nullable is a great idea. Much less boilerplate.
- krzyk 4y agoDepends on code base, at the beginning you would prefer the opposite, (not annotated are nullable).
- erik_seaberg 4y agoRather than opting into a slightly incompatible dialect for some but not all code, I would like an IDE that lets me specify what is @Nullable, and quietly inserts @NotNull everywhere else without displaying it. We can keep the boilerplate in the bytecode without rubbing our noses in it.