OT: (Java) Null-Restricted and Nullable Types (Preview)

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Fri Aug 2 10:31:54 UTC 2024


On 02/08/2024 10:26 PM, ryuukk_ wrote:
> That's funny to see Java being modernized before D
> 
> Pattern matching, and now nullable types with the introduction of '?' 
> and '!'
> 
> https://bugs.openjdk.org/browse/JDK-8303099
> 
> 
> If you know DMD, submit your PR today

It is not exactly surprising that Java is getting nullability type state 
representation in the language.

Other JVM languages have had it for around 15 years and it appears to be 
useful information for optimization.


More information about the Digitalmars-d mailing list