Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mynameisash
on Oct 12, 2021
|
parent
|
context
|
favorite
| on:
Tricks I wish I knew when I learned TypeScript
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.
remram
on Oct 12, 2021
[–]
Oh no! Does it not have a type for NonNull references, like Rust does?
kaba0
on Oct 12, 2021
|
parent
[–]
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:
Not exactly a language design, but an unfortunate reality.