New EEP draft: Pinning operator ^ in patterns

Richard Carlsson carlsson.richard@REDACTED
Thu Dec 24 21:10:17 CET 2020

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

Ho ho ho,

        /Richard & the good folks at WhatsApp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Type: text/markdown
Size: 10094 bytes
Desc: not available
URL: <>

More information about the erlang-questions mailing list