[erlang-questions] Can we change the semantics of match expressions in comprehensions?
Bjorn Gustavsson
bjorn@REDACTED
Tue Feb 5 09:05:12 CET 2008
"Matthew Dempsky" <matthew@REDACTED> writes:
> Below is a patch for the Erlang compiler that better optimizes
> generator expressions like "Pat <- [Expr]" in list comprehensions. A
> similar patch could probably be built for binary comprehensions.
>
> (I doubt it's worth the added complexity to include, but I thought I'd
> share anyways.)
Thanks! I will have a look and might include it (or a similar optimization)
in R12B-2.
/Bjorn
--
Björn Gustavsson, Erlang/OTP, Ericsson AB
More information about the erlang-questions
mailing list