|
|
|
|
|
by uryga
1549 days ago
|
|
distinguishing `Some(null)` and `None` is often considered a feature of Optional ;) to use a tired example: when getting a value out of a map via some `myMap.get(key)`, you may want to distinguish
"not present" = `None`
and
"present, with value null" = `Some(null)` the right solution is to just not have nulls in the first place, then there's no problem ;) |
|