News for hackers. Stuff that matters.
Re:Weird Python Integers by deathanatos on Thursday August 24, 2017 @08:45PM (#15095280)
Comparison by value tends to be more useful, and more often what a user expects "==" to mean. In some ways, "==" mirrors the mathematical =. (Not exactly, of course, since mathematics is usually making statements of fact: x = 2 means x is equal to 2, not x is assigned the value 2.)

I think Python is a good example here, where referential comparison is the `is` operator: `a is b`.

There are no comments on this comment yet.