You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@non, do you have any advice on whether spire can help with problems 3,4,5 above?
Currently I'm just sort of punting by doing everything in Double space, which isn't terrible but I feel like it could be better and standard Scala Numeric doesn't quite get me there.
I have decided to not direcly use with, instead it is safer to use a type alias WithUnit and/or %# such that Int WithUnit Meter is equivalent to Quantity[Int, Meter]. This also makes it behave more like require
I'm closing this issue.
This might be a very powerful feature, although it comes with some drawbacks and problems to solve:
with U
part isn't closed under various numeric operationswith U
part by assigning to non-qualified numeric valuesInt with U <+> Float with U
Numeric[N]
doesn't seem to support construction of newN
from arbitrary other valuesThe text was updated successfully, but these errors were encountered: