I am aware of optionals in most functional languga...
# announcements
d
I am aware of optionals in most functional langugages, but it's not exactly the same
a
why not? I don't feel a need for Kotlin-like nullability in a language with Optional as a first-class citizen, e.g. in Scala.
d
yeah in functional language
I was mostly asking about multiparadigm languages
like Java
or C#
a
in C# and Java this is problematic because these languages were designed without safe nullability model, now they both try to solve it somehow. C# goes Kotlin way (in C# 8.0 you have nullable reference types)
d
that's kinda my question, why didn't they go with nullability in the first place, since to me it's obvious choice, unless there are big downsides
and many new languages like dart
a
old languages like Java and C# I think because it was not obvious that time that nulls will make so much trouble. There are many similar examples for things that were not obvious 10 - 20 years ago (say, Java creators argued that lambdas are not needed). For modern languages I have no idea... even if it is costly to introduce, seems like we learned nothing in the last 20 years...