On 2013/7/13 Jsor <
jrago...@gmail.com> wrote:
> True, I can't think of a scenario where it is *required*. However, if you
> have, say, a Set implementation (most easily done with a map), it's not
> uncommon to have very large sets -- and it seems rather needless to force
> iterating over a 10k member set just to prove that a reference is, indeed,
> equal to itself. Again, if there is some under-the-hood optimization that
> does something like this then whether such an operation exists or not isn't
> really a big deal. It's mostly just a performance related concern.
>
> I'm not asking for an "=="-like operator to be added to the built-ins for
> maps. I was mostly curious if there was some way to do this with the
> standard library, hopefully avoiding reflect, but unsafe would likely be
> fine if it's the only way.
Rémy.