[eeps] EEP ???: Value-Based Error Handling Mechanisms

Robert Virding rvirding@REDACTED
Mon Sep 17 10:41:30 CEST 2018


Sorry I have missed this until now. Isn't this similar to the elixir 'with
... do ... error ... end' construct? At least in trying to flatten
potential nested cases? Though it seems to be more specific in how it
handles the return values.

Robert


On Tue, 4 Sep 2018 at 23:07, Fred Hebert <mononcqc@REDACTED> wrote:

> This EEP adds a contextual <~ operator to begin ... end expressions,
> which allows them to be usable for value-based error handling, based on
> standard {ok, term()} | {error, term()} return value types.
>
> This lets begin ... end become a control flow construct to replace or
> simplify deeply-nested case ... end expressions, and prevent using
> exceptions for control flow.
>
> I want to thank Jesper Louis Andersen, Sean Cribbs, Tristan Sloughter,
> Evan Vigil-McClanahan, Anthony Ramine, Bryan Paxton, and Pedram Nimreezi
> for their feedback on this document.
>
> The draft is attached to this document, and also available (along with
> an incomplete reference implementation to explore some semantics) at
> https://bitbucket.org/ferd/unwrap
>
> Sorry for sending a first copy without the attachment,
> Fred.
> _______________________________________________
> eeps mailing list
> eeps@REDACTED
> http://erlang.org/mailman/listinfo/eeps
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/eeps/attachments/20180917/e78d2b4d/attachment.htm>


More information about the eeps mailing list