isSame
isSame is a term used in programming and data processing to describe a predicate that tests whether two values correspond to the same entity under a defined notion of sameness. The exact semantics of sameness can vary by language and context, and so isSame is often implemented to reflect either identity (whether two references point to the same object) or value equality (whether two values are equivalent in content).
Two broad interpretations are common. Referential identity treats isSame as a test of whether two references
In practice, isSame appears in different forms. In Python, for example, the identity check is performed with
Semantics should be clearly documented because the meaning of sameness affects correctness, such as memoization, deduplication,