Go Identity Equality Comparability: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(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>")
 
Line 2: Line 2:
* [[Go_Language#Identity,_Equality,_Comparability|Go Language]]
* [[Go_Language#Identity,_Equality,_Comparability|Go Language]]


=Overview=
The Go notion of '''comparability''' implies that the equality operators <code>==</code> and <code>!=</code> must return the correct values when used.
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>
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>

Revision as of 00:22, 27 August 2024

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