Hacker News new | past | comments | ask | show | jobs | submit login

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`.



Yeah, means I don't need to worry about null unless I explicitly allow null.



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

Search: