Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proposal: Go 2: add random comparision operator, perhaps <> or <=> #46511

Closed
malisetti opened this issue Jun 2, 2021 · 1 comment
Closed

Comments

@malisetti
Copy link

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.

@gopherbot gopherbot added this to the Proposal milestone Jun 2, 2021
@randall77
Copy link
Contributor

That comment by Rob was a joke. If you're serious, please fill out the proposal template and reopen.

@golang golang locked and limited conversation to collaborators Jun 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants