Scala LanguageHandling units (measures)


Syntax

  • class Meter(val meters: Double) extends AnyVal
  • type Meter = Double

Remarks

It is recommended to use value classes for units or a dedicated library for them.