Transient ranges
Dicebot via Digitalmars-d
digitalmars-d at puremagic.com
Tue May 31 14:29:59 PDT 2016
On Tuesday, 31 May 2016 at 21:25:12 UTC, Timon Gehr wrote:
> On 31.05.2016 22:59, Dicebot wrote:
>>
>>
>>
>>> I think we should be aware that the range API doesn't prevent
>>> bugs of
>>> all kinds. There's only so much analysis the compiler can do.
>>
>> This is a totally valid code I want to actually work and not be
>> discarded as "bug".
>
> map often allows random access. Do you suggest it should cache
> opIndex too?
Random access map must store all already evaluated items in
memory in mu opinion.
More information about the Digitalmars-d
mailing list