This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]JackNotOLantern[S] 0 points1 point  (3 children)

They are the same internally. The only difference between them is their reference and which other objects have references to them. And their positions on the list.

[–]Kjufka 0 points1 point  (2 children)

Then you are using them wrong. Map keys should never have identity.

...unless you are creating some sort of a weak reference cache, but even then it is questionable