optimization of list comprehensions

Torbjorn Tornkvist <>
Fri Mar 3 15:01:55 CET 2006


Mats Cronqvist wrote:
> 
> 
> Torbjorn Tornkvist wrote:
> 
>> Mats Cronqvist wrote:
>>
>>>   here's the thing. the list comprehensions were introduced for no 
>>> good reason, in that they added nothing that you could not already do. 
>>
>>
>>
>> Hm...as I remember it; they were introduced because of Mnemosyne.
> 
> 
>   in order to do what? i.e. is there anything that cannot be done 
> without list comprehensions? (i've never used mnemosyne).
> 
>   mats

Hans Nilsson can probably elaborate on this quite a bit.
Mnemosyne added a way of doing Mnesia queries using a syntax
very close to list comprehensions, so close in fact that they
were added as a general language construct. At least that is
how I remember it...

--Tobbe




More information about the erlang-questions mailing list