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

Reconsider empty interval contains #9

Open
electronjoe opened this issue Nov 3, 2024 · 1 comment
Open

Reconsider empty interval contains #9

electronjoe opened this issue Nov 3, 2024 · 1 comment

Comments

@electronjoe
Copy link
Owner

It seems it would be more mathematically consistent to state that the empty interval contains the empty interval. Consider making this change.

            // The Empty Interval contains no other Intervals (even Empty)
            (Bound::None, _) => false,
@electronjoe electronjoe changed the title Resoncider empty interval contains Reconsider empty interval contains Nov 3, 2024
@electronjoe
Copy link
Owner Author

Alternatively:

Consider adding a subset_of method alongside contains to better align with mathematical convention. This would allow ∅ ⊆ ∅ while maintaining the current strict containment semantics.

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

No branches or pull requests

1 participant