Go Identity Equality Comparability

From NovaOrdis Knowledge Base
Revision as of 00:22, 27 August 2024 by Ovidiu (talk | contribs) (→‎Internal)
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