Documentation ¶
Overview ¶
Package disalloweq provides a method for disallowing struct comparisons with the `==` operator.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DisallowEqual ¶
type DisallowEqual [0]func()
DisallowEqual can be used to cause the compiler to reject attempts to compare structs with the `==` operator.
This is useful as the Scalar and FieldElement types should not be comparable via the `==` operator as the internal representation of both are not guaranteed to be canonical (ie: fully reduced).
The better solution would be for Go to embrace circa 1960s technology and support operator overloading a la ALGOL 68.
Click to show internal directories.
Click to hide internal directories.