On 12/15/14 12:52 PM, ketmar via Digitalmars-d-learn wrote:
On Mon, 15 Dec 2014 17:37:13 +0000
Tobias Pankrath via Digitalmars-d-learn
<digitalmars-d-learn@puremagic.com> wrote:

I think we should require byKeys and byValues to iterate the
elements in the same order. Than we can just zip them for the
pairwise iteration.

Would this impose a performance problem with the current
implementation?
i was always sure that they doing that in the same order. at least this
was true some time ago, but i see that runtime AA changed since, so i
don't sure if it works like this now.

It does work this way, the same structure and functions are used to do both byKey and byValue.

but i agree that this
requirement should be documented. and i bet it will not, 'cause this
will support principle of least astonishment, which is completely alien
for D.

Really? You done filling up that man with straw?

-Steve

Reply via email to