optimization of list comprehensions
Fri Mar 10 13:34:57 CET 2006
Bengt Kleberg wrote:
> On 2006-03-10 10:46, Mats Cronqvist wrote:
>> Richard A. O'Keefe wrote:
>>> [...] If funs are not used when they are *appropriate*, then it isn't
>>> "perfectly fine" Erlang.
>> appropriateness is in the eye of the beholder.
> i apologise for entering this discussion. i have not had anything to
> offer before, and even this is probably in the ''better not written''
> but, imho if somebody is doing a manual recusrsion over a list to
> ''map/filter/fold'' then it isn't "perfectly fine" Erlang.
> no matter how appropriate the author of the code think it is.
but that depends entirely of what you mean by "perfectly fine". it's not like
recursive functions are being obsoleted. it might even be faster to execute.
in this particular case, your opinion and my opinion are the same. but they
are just opinions, not laws of nature.
More information about the erlang-questions