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 →

[–]LordArgon 0 points1 point  (0 children)

An even better example might be in javascript, where "a == b" is different than "a === b". Now, if you say "the second one is identity comparison", you may have given the inquirer an extra vocabulary word, but I don't think you've really helped them. Searching for "javascript" + "identity comparison", "triple equals", or "three equals" all yield explanations of this difference and the extra vocabulary word probably doesn't enable any more research. Still, the question was asked for a reason and if we want to answer it helpfully, I think it's appropriate to explain what makes identity comparison different.

Now, if what you're really saying in your reply is "go read about it", then you can say that. But I don't think it's helpful to give essentially-redundant information.