Go Identity Equality Comparability

From NovaOrdis Knowledge Base
Revision as of 00:22, 27 August 2024 by Ovidiu (talk | contribs) (Created page with "=Internal= * Go Language The Go notion of '''comparability''' implies that the equality operators <code>==</code> and <code>!=</code> 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. <font color=darkkhaki>More here: Go_Maps#Overview</font>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

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