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

FoR compare #1656

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

FoR compare #1656

wants to merge 1 commit into from

Conversation

gatesn
Copy link
Contributor

@gatesn gatesn commented Dec 12, 2024

Fixes #1570
Fixes #1420

Needs tests

Copy link
Contributor

@AdamGS AdamGS left a comment

Choose a reason for hiding this comment

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

Please add tests.

Scalar: From<Option<T>>,
{
// For now, we only support equals and not equals. Comparisons are a little more fiddly to
// get right regarding how to handle overflow and the wrapping subtraction.
Copy link
Contributor

Choose a reason for hiding this comment

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

If the right side is less than the reference, we can perform a short-circuit Greater Than comparison.

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.

Implement FoR::compare
3 participants