I'VE GOT THE BYTE ON MY SIDE

57005 or alive

Extending a 3rd-party API with F# units of measure

Dec 6, 2014 F#

Continuing the recent theme of awesome .NET development news, a blog post from Thursday by the .NET team provided more details on the platform’s future, “.NET Core.”

The ensuing comment thread on Hacker News had some nice F# discussion.  One commenter, though, was not a huge fan, and in particular lamented perceived limitations in the F# units of measure feature:

...I tried to be excited about units of measure, but there isn't even a way to annotate third-party libraries...

Well that’s just nonsense!

I left a reply comment showing how to do this, and wrote up a gist with a few more details.  Just thought I’d share here, too.


Comments