|
|
|
|
|
by mrec
3350 days ago
|
|
> If you only have one of TryParse or Parse you cannot judge the intention. Sure you can. To take Java as an example, if you only have one parse method and it returns an `Optional`, you can indicate the intention by whether or not you call `get` directly or call something like `isPresent` or `orElse` first/instead. Yes, you can get that wrong, but you can get the choice between `TryParse` and `Parse` just as wrong. |
|