Skip to content

documentation: use more intuitive value to compare against #7134

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

Closed
wants to merge 1 commit into from

Conversation

vn971
Copy link

@vn971 vn971 commented Aug 29, 2019

I think this is also a bug because Ord, even though formally not defined here, would normally be expected to have range -infinity .. +infinity by an average programmer, not necessarily only taking -1, 0, 1 as values.

Even if it's not a bug, comparing with 0 would look better and more intuitive.

I think this is also a bug because `Ord`, even though formally not defined here, would normally be expected to have range `-infinity .. +infinity` by an average programmer, not necessarily only taking `-1, 0, 1` as values.

Even if it's not a bug, comparing with `0` would look better and more intuitive.
Copy link
Member

@dottybot dottybot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, and thank you for opening this PR! 🎉

All contributors have signed the CLA, thank you! ❤️

Have an awesome day! ☀️

odersky added a commit to dotty-staging/dotty that referenced this pull request Aug 30, 2019
as suggested in scala#7134 by @vn971
@odersky
Copy link
Contributor

odersky commented Aug 30, 2019

Thanks for the fix! I integrated it as part of #6919.

@odersky odersky closed this Aug 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants