4 ms·
Generally I would think optional values are not indicating errors but to indicate an absence of something. A null database result would be the item was not foun
by asdfaoeu 11y ago
Generally I would think optional values are not indicating errors but to indicate an absence of something. A null database result would be the item was not found rather than an issue communicating with the database. Moving that to try / catch error would increase the possibility that another unexpected operation is inadvertantly caught. Somewhat similar examples can be found for Result but I do conced you have a better case.