Cf. discussion at https://github.com/JuliaMath/Primes.jl/pull/78#discussion_r352474088.
This allows for example factor(Int[], 123).
Should we remove factor(Vector, 123), deprecated it?
Or should we just remove the generic methods (factor(::Type{AbstractArray}), factor(::Type{AbstractDict}), etc.) and keep the ones with Base types (which we know how to instantiate)?
I would just remove them all before we tag 1.0.
Cf. discussion at https://github.com/JuliaMath/Primes.jl/pull/78#discussion_r352474088. This allows for example
factor(Int[], 123)
. Should we removefactor(Vector, 123)
, deprecated it? Or should we just remove the generic methods (factor(::Type{AbstractArray})
,factor(::Type{AbstractDict})
, etc.) and keep the ones withBase
types (which we know how to instantiate)? I would just remove them all before we tag 1.0.