News for hackers. Stuff that matters.
Re:JVM/Java: Null-Restricted and Nullable Types by afiori on Friday August 02, 2024 @05:37AM (#41137353)
> I can't think of a reason why you would want to declare something as nullable when not declaring anything automatically makes the type nullable anyway.

It can more clearly show intent. Is is similar to the argument for using const in javascript: you should use const as much as possible so that when you see a let you know that it is going to be mutated at some point.

There are no comments on this comment yet.