Y
Hacker News
new
|
ask
|
show
|
jobs
by
mynameisash
1709 days ago
Scala, as I recall. It encourages using Options (Some/None), but since it runs on the JVM and will often interop with Java libraries, you can also have nulls.
Not exactly a language design, but an unfortunate reality.
1 comments
remram
1709 days ago
Oh no! Does it not have a type for NonNull references, like Rust does?
link
kaba0
1709 days ago
Since Scala 3, it can have total static analysis where nulls become a separate type that has to be explicitly declared in type signatures.
So, yes.
link