Referential Transparency for Exceptions

Referential transparency (“RT”) is a contract in functional programming which assures that the result of a function call returns always the same value for a given input. Any side-effect will break this contract, therefore referential transparency requires you to avoid side-effects even in failure handling. The most concrete example of referential transparency is the functions […]

Continue reading →