3 ms·
The only real problem with null, is not having a real optional type in Java. If you have it, 99,999% of null errors go away. Java Optional std lib class, inst
by szastamasta 2y ago
The only real problem with null, is not having a real optional type in Java. If you have it, 99,999% of null errors go away.
Java Optional std lib class, instead of a language (typesystem level) feature was one of biggest mistakes in its recent history.
- MrBuddyCasino 2y agoAt least they plan on introducing null safety for value objects via the „Null-Restricted Value Class Types“ JEP: https://openjdk.org/jeps/8316779 https://openjdk.org/jeps/8316779