by rebeccaskinner · 2y ago · 0 comments
- fixed point arithmetic
- tagging values with units
- localization for parsing currency names into units
I'm curious if Kotlin's type system is expressive enough to allow you to catch at compile time cases where you might be trying to, e.g. add USD to GBP.But I think I'll make it explicit in the documentation. Thanks for pointing out!
Not in this library, but I think it's possible to put the currency as a type parameter.