Go Identity Equality Comparability

From NovaOrdis Knowledge Base
Revision as of 00:10, 29 August 2024 by Ovidiu (talk | contribs) (→‎Overview)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

Overview

The Go notion of comparability implies that the equality operators == and != must return the correct values when used.

The instances of a type can be map keys as long as the type has an equality operator. More here: Go_Maps#Overview

TODO: