[erlang-questions] Human readable errors in lists module
Fri Feb 13 16:07:04 CET 2009
I was talking about parallel-comprehensions aka zip-comprehensions, not
Ulf Wiger (TN/EAB) wrote:
> Zvi skrev:
>> I think instead of "fixing" lists:zipwith, it's better to add
>> parallel list comprehensions, i.e.:
>> lists:zipwith(F, Xs, Ys) = [F(X,Y) || X<-Xs ; Y<-Ys].
>> Note ";" instead of ",".
> This is actually more difficult than it seems
> at first glance.
> I went through parallelization of lists:map/2
> as an exercise in a recent presentation:
> The things that need careful consideration are
> side-effects and exceptions. It's not obvious how
> a generic implementation should behave, as there is
> a cost/safety tradeoff.
> Ulf W
> erlang-questions mailing list
View this message in context: http://www.nabble.com/Human-readable-errors-in-lists-module-tp21936024p21998151.html
Sent from the Erlang Questions mailing list archive at Nabble.com.
More information about the erlang-questions