New EEP draft: Pinning operator ^ in patterns

Nalin Ranjan ranjanified@REDACTED
Fri Jan 22 15:54:36 CET 2021


This one is interesting.

नमस्ते।
नलिन रंजन

On Fri, Jan 22, 2021, 8:16 PM Richard Carlsson <carlsson.richard@REDACTED>
wrote:

> 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/60f2e642/attachment.htm>


More information about the erlang-questions mailing list