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

Provide Orderings for new numeric types #4

Open
propensive opened this issue Mar 25, 2024 · 2 comments
Open

Provide Orderings for new numeric types #4

propensive opened this issue Mar 25, 2024 · 2 comments
Assignees
Labels
code quality Concerns the standard of code rather than functionality core Describes core required functionality

Comments

@propensive
Copy link
Owner

propensive commented Mar 25, 2024

The absence of Ordering instances makes operations like sum impossible on, say, a U32.

@propensive propensive added code quality Concerns the standard of code rather than functionality core Describes core required functionality labels Mar 25, 2024
@propensive propensive self-assigned this Mar 25, 2024
@propensive
Copy link
Owner Author

This should be a typeclass called Orderable for consistency with Scala 3.5 givens.

@propensive
Copy link
Owner Author

The Orderable typeclass instances have been provided, but they can't be used with sum (for example) because it requires an Ordering.

@propensive propensive moved this from Todo to Started in Soundness Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code quality Concerns the standard of code rather than functionality core Describes core required functionality
Projects
Status: Started
Development

No branches or pull requests

1 participant