Allow DerivedMeasurement.zero() - without specifying specific interpreter
Issue #4
resolved
When updating to v2.2.4, the .zero() constructor of DerivedMeasurements is required and non-nullable, this means that we have to specify which interpreter to use.
Is there a way that it can have default values? For example, DerivedMeasurement<Mass, Time>.zero() would have the default values from Mass & Time as its default value. We use .zero() a lot for comparison reasons as a constant and thus, the exact unit interpreters are not necessary.
Thanks!
Comments (3)
-
repo owner -
repo owner - changed status to resolved
-
repo owner - Log in to comment
Hmm, it seems I messed that up. Please accept my apologies!
2.2.5 should be where you want it, uploaded now. Thanks!