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.