News for hackers. Stuff that matters.
Re:Records Come to Java by wvenable on Thursday January 16, 2020 @06:32PM (#22070254)
In both C# and Java, reference types are nullable. Nullable<T> exists in C# to provide for nullable value types. It's not comparable to Optional<T> as that's an entirely different feature.
Re:Records Come to Java by anthonybsd on Thursday January 16, 2020 @07:03PM (#22070473)
They aren’t “entirely different feature”. Why do you think C#8 introduced Nullable reference types that work exactly like Java Optional ? https://docs.microsoft.com/en-us/dotnet/csharp/nullable-refe...