Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Weird Python Integers. Parent comment
a == b is an value-comparison of the identity "value" (in Java it's the memory reference).
Or in other words, how do I know two references are equal (identity equal) without comparing the values of the references?
Logical equality devolves to the same thing at the end.
There are no comments on this comment yet.
a == b is an value-comparison of the identity "value" (in Java it's the memory reference).
Or in other words, how do I know two references are equal (identity equal) without comparing the values of the references?
Logical equality devolves to the same thing at the end.