[erlang-questions] Human readable errors in lists module
Ulf Wiger (TN/EAB)
Fri Feb 13 09:32:30 CET 2009
> 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.
More information about the erlang-questions