New EEP draft: Pinning operator ^ in patterns

Richard Carlsson carlsson.richard@REDACTED
Fri Jan 22 15:45:57 CET 2021


Den fre 22 jan. 2021 kl 15:33 skrev Richard Carlsson <
carlsson.richard@REDACTED>:

> The other thing would be that you could no longer move around a fun or
> list comprehension to a different location and expect it to keep working as
> before - and I think that particularly for funs, this is a fundamental
> assumption with most people, even if they don't use shadowing today.
>

I should add that for some people generating Erlang code automatically,
this would be a total blocker, because they often rely on this assumption
that each fun creates a new local scope in itself for the variables in the
head, and thus you can insert it anywhere. Also several macros out there
rely on this.

    /Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20210122/5dd0eb34/attachment.htm>


More information about the erlang-questions mailing list