Result (macro version)

CIModule VersionHex DocsLicense

A Result pattern for Elixir.

This is a fork of the result library that preserves the same functions and their semantics, except that everything is implemented as a macro.

I love Rust-like result handling, but incurring a module call overhead every time I’d like to wrap my values in {:ok, val} was too steep a price to pay.

Installation

The package can be installed by adding result_macros to your list of dependencies in mix.exs:

def deps do
  [
    {:result_macros, "~> 1.7.2"}
  ]
end