Closed
Description
Another option is to have an operator, perhaps <> or <=>, which randomly chooses whether the comparison succeeds or fails. This could be used to drive high-quality tests for fault-tolerant programming.
Originally posted by @robpike in #45319 (comment)
I am making this proposal inspired from the above comment. If have a random comparison operator and have control over it's randomness via build flags it would be useful to write tests and also code.