Asssociative Array by Key-Value-Pair

Steven Schveighoffer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Dec 16 08:08:09 PST 2014


On 12/16/14 10:33 AM, Tobias Pankrath wrote:
>
>>>
>>> so it will be documented? that was the rhetorical question.
>>
>> Does it need to be? I don't see a reason for anyone to go out of their
>> way to make the implementation inconsistent. Do you?
>
> At least I would prefer not to rely on undefined behaviour. If we ever
> do change the AA implementation in an inconsistent way, it will at least
> prevent the "but this code was broken all along"-argument.
>
> On the other hand adding just one sentence to the documentation would
> cost us nothing.

I can never ever see a reason to implement 2 different ways to traverse 
the elements, just to piss off people?

If you make a PR that adds that to documentation, I will pull it if it 
makes you feel better. I don't think it hurts, but don't think it's 
worth my time to make such a PR.

-Steve


More information about the Digitalmars-d-learn mailing list