top | item 30751386

(no title)

sleepyfran | 4 years ago

This is one of the reasons why I love F#, baked in support for units of measures. So instead of having to rename the function to include the unit I can just declare it to take the type `int<second>` and the compiler will complain if you try to pass an `int` or an `int<minute>` unless you declare an explicit conversion between the units.

discuss

order

No comments yet.