2 ms·
I'm just mentioning the naming, not the general approach to error handling. Panic are roughly similar to what an "exceptional exception" is (stop control flow,
by dgellow 7y ago
I'm just mentioning the naming, not the general approach to error handling. Panic are roughly similar to what an "exceptional exception" is (stop control flow, unfold stack until being handled), but the naming is slightly better IMHO.
I personally like Go's approach, but that's not for everybody (I'm also quite fond of the monadic approach though).