Now that StaticFloat64 <: Real is false, lots of functions that are defined independently of Static.jl are breaking. More concretely, suppose
is defined in a package that does not depend on Static.jl. Passing a StaticFloat64 to foo now throws an MethodError.
For packages I control, there's an easy fix: Change the constraint to ::Number or remove it altogether. But what's the recommended approach for packages I can't change so easily?
The only easy fix I see is to define a local _foo(x) = foo(x), add a method _foo(::StaticFloat64{x}) where {x}, and then always call _foo. But that seems like a mess, and it will still break downstream when users of my package try to call foo. Any other ideas?
Now that
StaticFloat64 <: Realis false, lots of functions that are defined independently of Static.jl are breaking. More concretely, supposeis defined in a package that does not depend on Static.jl. Passing a
StaticFloat64tofoonow throws anMethodError.For packages I control, there's an easy fix: Change the constraint to
::Numberor remove it altogether. But what's the recommended approach for packages I can't change so easily?The only easy fix I see is to define a local
_foo(x) = foo(x), add a method_foo(::StaticFloat64{x}) where {x}, and then always call_foo. But that seems like a mess, and it will still break downstream when users of my package try to callfoo. Any other ideas?