ElixirWeekly: The Elixir Community Newsletter, covering community news you easily miss, shared on ElixirStatus and the web, in one email every Thursday.
In Elixir/Erlang, error cases can be easily modeled as tagged tuples:
But in a more Object-Oriented language like Ruby, it’s hard to model error as a lightweight data structure like Elixir tuples.
After some trial-and-error, I’ve found a great way to model errors in OO languages: Result Object.
Read next Easy and Robust Rate Limiting In Elixir