Re:Overhead of Returning Optional Values in Java and Rust
by vips7L on Saturday October 16, 2021 @01:40PM
(#28889676)
Yeah I’m hoping Java takes the C# approach with a compile option that can enable that type of null safety.
[ Parent
| on HN ]
Re:Overhead of Returning Optional Values in Java and Rust
by pjmlp on Sunday October 17, 2021 @02:15AM
(#28894366)
The C# approach will take decades for .NET shops to wrap their minds around it.
2021 was the first year I deploy anything related to .NET Core in production, and it was still .NET Core 3.1.
Will this velocity no one is going to their .NET repos and rewrite the libraries with the required annotations to keep the compiler happy.
If you want null safety in Java today, just make use of @Nullable, a good IDE with static analysis, and deploy PMD, FindBugs or SonarQube into the CI/CD pipeline.