Caching in computing ranges

Peter Alexander peter.alexander.au at gmail.com
Sat Oct 9 13:12:45 PDT 2010


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.


More information about the Digitalmars-d mailing list