[erlang-questions] Maps branch and disclaimers

Jesper Louis Andersen jesper.louis.andersen@REDACTED
Mon Oct 28 17:07:00 CET 2013

On Mon, Oct 28, 2013 at 5:05 PM, Anthony Ramine <n.oxyde@REDACTED> wrote:

> 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).

Yes. It is a problem I have encountered quite often, where the code throws
away terms deliberately and you have no way to fix this but to use a
standard lists:map/2 call.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20131028/5814e6ab/attachment.htm>

More information about the erlang-questions mailing list