https://kotlinlang.org logo
v

voddan

06/19/2016, 3:05 AM
@maxim: in your example with minutes it makes sense to have a separate type Minutes which validates the value inside it. That s how you reuse the logic