News for hackers. Stuff that matters.
Re:JVM/Java: Null-Restricted and Nullable Types by vbezhenar on Friday August 02, 2024 @08:26AM (#41138272)
If the first or second example would cause compiler error, it means that you would need to annotate every library usage. Your code will be full of casts on almost every line, until the given library would migrate to null types, if ever. It makes no sense.

For example they explicitly saying that standard library will not migrate to null types, at least for now.

Re:JVM/Java: Null-Restricted and Nullable Types by jayd16 on Friday August 02, 2024 @12:30PM (#41140223)
You can still work with the nullable types, as is, from these libraries. You only need to cast/check when you want to use the non-nullability feature.