[erlang-bugs] Match error when mapping a list of maps with anonymous functions in the shell
Kostis Sagonas
kostis@REDACTED
Sun May 4 13:00:19 CEST 2014
On 05/04/2014 11:13 AM, Anthony Ramine wrote:
> Now the only remaining bug concerns some edge cases:
>
> [X=not_ok,(fun (Y) -> X = Y end)(ok)].
> [X=not_ok,case ok of ok -> X = ok; _ -> ok end].
>
> In my opinion, in both cases the second X shouldn’t be matched against the first.
Why not? Care to elaborate what is your rationale and what should
happen in these cases?
Kostis
More information about the erlang-bugs
mailing list