-
Notifications
You must be signed in to change notification settings - Fork 27
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
Easier to disambiguate in
#126
Conversation
Codecov ReportBase: 99.16% // Head: 99.17% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #126 +/- ##
=======================================
Coverage 99.16% 99.17%
=======================================
Files 3 3
Lines 239 241 +2
=======================================
+ Hits 237 239 +2
Misses 2 2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Could you bumb the version to v0.7.4
?
(x-ref: 0661291#commitcomment-91522252)
Should we instead define _in(v, t::Domain) = throw(ArgumentError("in(::$(typeof(v)), ::$(typeof(t))) is not defined"))
EDIT: I've instead defined Edit 2: Defining Edit 3: This seems harder than I had thought because of the type-piracy. I've gone all the way back to the original idea presented in the first post. |
Along with JuliaMath/IntervalSets.jl#126, this helps avoid ambiguities such as in JuliaApproximation/ApproxFun.jl#847
I agree with all of your points. It seems better to have |
In this PR, instead of specializing
in(v, ::T) where {T<:TypedEndpointsInterval}
, we defineand specialize
_in
. This makes it easier for other packages to definein(v::CustomType, I::TypedEndpointsInterval)
without having to resolve ambiguities with more specific types.