Actually gets quite philosophically deep and interesting.
Quora Answer : What is the difference between an equality and an identity?
In most languages, yes.
x = 1
y = 1
Does x equal y? Yes. Because 1 equals 1.
Does x have the same identity as y? No. x and y are different variables, stored in different spaces in memory.
There might be some languages where there is no concept of identity. Possibly SQL. Or Prolog. In these languages, there's no explicit way to talk about identity as distinct from value. So any way you have of comparing x and y will always show them to be equal.
Nothing to do with most of the OnIdentity stuff ...
Or does it?
Backlinks (1 items)