[erlang-questions] Maps branch and disclaimers

Anthony Ramine <>
Mon Oct 28 17:05:05 CET 2013


But the right operand of a map generator is a pair with ‘:=‘, right? I would say this is not too visually ambiguous.

I would avoid any ‘:’ character in the new operator because Jesper once had the idea of introducing strict generators with ‘<:-‘ and ‘<:=‘, which would not skip items that doesn’t match (e.g. "[ X || {ok, X} <:- [{error,Reason}] ]" would crash).

What about <~? Reminiscing of ROK’s frames.

-- 
Anthony Ramine

Le 28 oct. 2013 à 16:48, Robert Virding <> a écrit :

> - For map comprehensions I would NOT use <- as the generator operator as it tells me we are generating elements from a list. Binaries got a new operator and I think maps should as well, for example <:, or something else.
> 




More information about the erlang-questions mailing list