Hacker News new | ask | show | jobs
by melling 1301 days ago
“Unannotated types are considered not-nullable”

Defaulting to not-nullable is a great idea. Much less boilerplate.

2 comments

Rather 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.
Depends on code base, at the beginning you would prefer the opposite, (not annotated are nullable).