Open ssfrr opened 8 years ago
Ran into this issue (see the linked issue). Is linspace
support planned?
Relevant: https://github.com/JuliaLang/julia/pull/17408
Unitful avoids defining linspace
because of similar difficulties. I really do suspect we need a LinSpaces
package.
I recently tried getting a SIQuantity range using
linspace
, but it's not supported:I started looking into an implementation but it looks like you already went through this with
Range
, and decided to re-implement all theRange
stuff withSIRange
, so I figured I'd get some early feedback. Do you think that's the best way forward withLinSpace
as well? I assume there must be use cases for non-Real
SIUnit values or else you would have just madeSIQuantity{T<:Real, ...} <: Real
instead of the more generalNumber
, right?I have a feeling that this is an application where the Trait / abstract interface stuff will provide a cleaner solution, so another option might just be to wait until that settles down.