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

Restrict any and all` argument type bounds #133

Merged
merged 4 commits into from
Mar 11, 2025

Conversation

imreddyTeja
Copy link
Contributor

This PR closes #132.

Behavior does not change with the current Julia release, and the ambiguity is resolved for the nightly release.

Changes the argument types for the any and all methods on tuples to not rely on julia base definining
all(::Tuple{}) = true and any(::Tuple{}) = false.

Checklist

  • Appropriate tests were added (code already covered by tests)
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

This is not an issue with the current Julia release, but it likely will be in the future.

Changes the argument types for the `any` and `all` methods
on tuples to not rely on julia base definining
`all(::Tuple{}) = true` and `any(::Tuple{}) = false`.
@ChrisRackauckas ChrisRackauckas merged commit 4344896 into SciML:master Mar 11, 2025
15 of 18 checks passed
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.

Loading Static.jl with the latest julia nightly build makes all(::Tuple{}) ambiguous
4 participants