Re: New EEP draft: Pinning operator ^ in patterns

Rickard Green <[email protected]>
Newsgroups gmane.comp.lang.erlang.general,gmane.comp.lang.erlang.eeps
Message-ID <CAA_Z33OBodXtP9BESVMgMn-4vx606BHFE1Qs-=VZf8MDEoGZhw@mail.gmail.com>
On Thu, Dec 24, 2020 at 9:10 PM Richard Carlsson <[email protected]>
wrote:

> The ^ operator allows you to annotate already-bound pattern variables as
> ^X, like in Elixir. This is less error prone when code is being refactored
> and moved around so that variables previously new in a pattern may become
> bound, or vice versa, and makes it easier for the reader to see the intent
> of the code.
>
> See also https://github.com/erlang/otp/pull/2951
>
> Ho ho ho,
>
>         /Richard & the good folks at WhatsApp
>

I've added your attached EEP draft as EEP 55:
https://github.com/erlang/eep/blob/master/eeps/eep-0055.md

Regards,
Rickard
-- 
Rickard Green, Erlang/OTP, Ericsson AB
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.