Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
raiflip
· 6y ago · 0 comments
That example seems a bit odd as a design. You’re throwing an exception to represent a no result, but suppressing it to convert the exception to a none. Monads give you the convenience while being consistent.
Comments
[–]
Koshkin
6y ago
Well, the problem here is that using exceptions to implement the program’s logic is considered bad practice.