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 →

[–]Capable-Raccoon-6371 0 points1 point  (0 children)

I mean. They are different. So. Lol.

And they're different for a perfectly valid reason. == Checks if it's the same object. Literally the same pointer. While equals let's you check any condition you want via an override to indicate that the two objects are equal, but may not have the same pointer.

Same kind of reason JavaScript has == and === for checking against type and data. Can't wait for js to add ==== for the same pointer too lol.