3 ms·
> Most languages including Java and C++ have “non-null” and “nullable” annotations I thought this too until I gave them a try 6 or 7 years ago. And nope, it w
by mrkeen 4y ago
> Most languages including Java and C++ have “non-null” and “nullable” annotations
I thought this too until I gave them a try 6 or 7 years ago. And nope, it was just advisory in the Java case. May as well have been a comment. At best, it's shorthand for: throw a runtime exception if-and-only-if this method was called (directly) by Spring-or-similar.
What would a variable marked with Nullable mean anyway? That the other variables are not nullable?