'in' for plain arrays?
bearophile
bearophileHUGS at lycos.com
Thu Dec 2 04:21:19 PST 2010
Pelle M.:
> It doesn't exist for performance reasons, I think.
It's not a matter of performance. Walter thinks that "in" on AAs searches on keys. And the "keys" of a dynamic array are its indices. And searching for indices in a dynamic array is not so useful. Therefore no "in" for dynamic/static arrays. I think this line of thought is not practical, and Python gets this better.
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list