(no title)
dkulchenko | 6 years ago
If the error is expected/should be handled, just add the error to your pattern match and handle it right there (or bubble it up, if appropriate).
Truly exceptional situations where something "should never happen" won't be pattern matched against, BEAM will crash the process, and your supervisor will get you back to a good state.
Feels so much cleaner than either exceptions everywhere or easy-to-ignore error values.
No comments yet.