Re:The Problem with F# Evangelism
by yawaramin on Tuesday August 22, 2017 @08:30PM
(#15077526)
Units of measure. So in C# you can do something like this (using floats for convenience):
Then call it like this:
But, oops! that was actually supposed to be:
In F# you can use units of measure to prevent this kind of thing at compile time:
And, yes, in C# you can use things like named parameters to reduce the chances of something like this, but you can't eliminate it at compile time, which is what F# does.
[ Parent
| on HN ]
There are no comments on this comment yet.