Caching in computing ranges

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sat Oct 9 15:43:55 PDT 2010


On 10/9/10 15:12 CDT, Peter Alexander wrote:
> On 9/10/10 8:58 PM, Pelle wrote:
>> How about never having caches and if you need them, you can get a
>> cached(map(..etc..))?
>>
>> I do not understand where the notion that ranges should have caches come
>> from. It destroys the possibility for using const and complicates the
>> writing of them.
>
> I agree with this. Caching should not be a default.
>
> As it stands, I know that std.algorithm.Map uses a cache, I haven't
> checked any others.

It's the only one I can remember.

Andrei


More information about the Digitalmars-d mailing list