[erlang-bugs] Match error when mapping a list of maps with anonymous functions in the shell

Anthony Ramine n.oxyde@REDACTED
Sun May 4 11:13:32 CEST 2014


Fixed the initial bug reported by José:

	https://github.com/erlang/otp/pull/352

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.

-- 
Anthony Ramine

Le 29 avr. 2014 à 15:17, Björn-Egil Dahlberg <egil@REDACTED> a écrit :

> On 2014-04-29 15:08, Fred Hebert wrote:
>> (X=#{})#{x => (fun (Y) -> X = Y end)(ok).
> 
> I tested this,
> 
>    (X=#{})#{x => (fun (Y) -> X = Y end)(#{}) }.
> 
> 
> I think I see a scoping error with respect to X =(
> 
> 
> 




More information about the erlang-bugs mailing list