Result isomorphism
blog.ploeh.dk·7h
Flag this post

Result types are roughly equivalent to exceptions.

This article is part of a a series about software design isomorphisms, although naming this one an isomorphism is a stretch. A real isomorphism is when a lossless translation exists between two or more different representations. This article series has already shown a few examples that fit the definition better than what the present article will manage.

The reader, I hope, will bear with me. The overall series of software design isomorphisms establishes a theme, and even when a topic doesn’t fit the definition to a T, I find that it harmonizes well enough that it still belongs.

In short, the claim made here is that ‘Result’ (or [Either](https://blog.ploeh.dk/201…

Similar Posts

Loading similar posts...