Slide 18
Slide 18 text
At the call site, the user can use any measurement, and still get
the correct, typed, response.
Of course, this isnʼt foolproof, you could still create the
measurement with the UnitAngle.degrees, but it wonʼt let you
make the mistake of reversing the parameters.
The new Measurements API is really useful; invite me back
sometime and Iʼll talk about it some more.
let angle = Measurement(value: 45, unit: UnitAngle.degrees)
let radius = Measurement(value: 1, unit: UnitLength.meters)
let length = arcLength(radius: radius, angle: angle)
// -> 0.785397882567309 m