Hacker News new | ask | show | jobs
by miccah 1709 days ago
As a Rustacean currently learning Elixir, I found myself wanting this exact functionality. Kudos for making this, I'll definitely use it!
2 comments

See my reply elsewhere; you might be better off with using `with` in conjunction with the `{:ok, value}` or `{:error, "message"}` convention. That's more or less what this package does.

Welcome to Elixir! My company uses Elixir extensively, but I'm trying to get us to use some Rust for some NIFs and some other projects that would benefit from some performance. Both languages are really great and I derive great joy from using them. :)

Thanks :)

I was copy/pasting bits of this code in multiple projects, this quickly became annoying.