Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
paulddraper
on Nov 6, 2019
|
parent
|
context
|
favorite
| on:
TypeScript 3.7
Or, use Maybe/Option and have as many levels of nonexistence as you want.
Option[Option[Option[T]]]
Not that it would necessarily be very useful, but choosing 2 values of nonexistence is very arbitrary.
Usually zero or one level of nonexistence is enough.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Usually zero or one level of nonexistence is enough.