Closed johnynek closed 8 years ago
in my opinion, keeping Float/Double makes as much sense as almost any algebraic structure (except maybe we could say that Ring/Field would be by far the most common, so maybe only they should be specialized on Double, Float?).
I guess I am loathe to remove Float
/ Double
specialization unless we are sure they won't (or can't) be used. Do you think it would be OK to leave these annotations on our type classes? Given that Spire currently does specialize these, I feel like continuing to do that is a conservative approach that is consistent with enforcing MiMA.
Yeah, I'm totally fine with leaving Float/Double, but I just noticed that our algebra.lattice packages don't have it, and I'm not sure why.
That was probably just an oversight on my part. Let's add them.
@non can we do that in a separate fix? I like to keep them focused. If so, are there any other things we can add here?
Sure thing. This looks good to me. :+1:
fixes #90
Question: should Band and Semilattice use just Int, Long? Looks like most or all of algebra.lattice does this (even though you could make a lattice of Doubles/Floats with max/min).