Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
hgyjnbdet
16 days ago
|
parent
|
context
|
favorite
| on:
What if null was an Object in Java?
I quite like the way dart handles nulls.
hi-v-rocknroll
15 days ago
[–]
The way Crystal and Dart 2 handles it? Null as a separate and unique type unrelated to Object where type unions solve the problem using syntax like `String?` that is equal to `String | Null`.
hgyjnbdet
12 days ago
|
parent
[–]
Yeah, means I don't need to worry about null unless I explicitly allow null.
reply
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: