Hacker News new | ask | show | jobs
by int_19h 395 days ago
Exceptions are not side effects since no state mutation occurs.

If you really want to see everything through the FP lens, exceptions are exactly like Result<T, E> with implicit do-notation.