Exceptions against return codes
A function could report failure by returning a special value or by throwing.
What does throwing give that a return value does not?
A function could report failure by returning a special value or by throwing.
What does throwing give that a return value does not?