Scala Language Handling units (measures)

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

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.



Got any Scala Language Question?