Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Oh no! Does it not have a type for NonNull references, like Rust does?


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: