idioms - Expressing quantities with units prettily in Scala -
I need support for quantity with the units I want to apply unit vacuity to type systems as much as possible. . For example, it is not possible to add a village with a dollar. I am going down the path of the parameter types, but this code seems much more frequent than the Scala code I have seen from others.
Abstract class unitoffer abstract class category [T] {type T & Lt;: UnitOfMeasure} class volume [T
Is there a cleaner way to do this? "T & L: Unit OfMezer" is the main thing in Drumbeat Which is bothering me.
I just found article
Hope this helps.
Comments
Post a Comment