Allow DerivedMeasurement.zero() - without specifying specific interpreter

Issue #4 resolved
Luca Cras created an issue

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)

  1. Bruce Santier repo owner

    Hmm, it seems I messed that up. Please accept my apologies!

    2.2.5 should be where you want it, uploaded now. Thanks!

  2. Log in to comment