stantronic
03/30/2023, 3:05 PMShift.Duration
and one for Absence.Duration
. At present these are nested classes, but it might soon be desirable to have them in their own file, or even in a separate module. Do you think this could be a possibility?andylamax
03/30/2023, 3:37 PMJoffrey
03/31/2023, 7:27 AMYoussef Shoaib [MOD]
03/31/2023, 10:59 AMShift.Duration
is never used in place of an Absence.Duration
. That makes it less likely to mess up the 2 durationsJoffrey
03/31/2023, 3:26 PMkotlin.time.Duration
stantronic
04/11/2023, 11:28 AMandylamax
04/11/2023, 12:47 PMJoffrey
04/11/2023, 12:59 PMDuration
class represents a time span with a beginning and an end moment, it would probably benefit from being renamed, and thus yeah obviously a different type.
But yeah I get that having different units also might make arithmetic different for those types as a whole, so even without the "ongoing" property it would probably be justified to have different typesJoffrey
04/11/2023, 1:01 PMstantronic
04/11/2023, 2:18 PM