Skip to main content

Units of Measure (F#)

  • From: Werner Keil < >
  • To: " " < >
  • Subject: Units of Measure (F#)
  • Date: Wed, 12 Nov 2014 19:59:48 +0100

Dear Experts,

Just out of curiosity and because I might actually offer a kind of
"shoot-out" between Java and F# next year for Developer Week (where I'm
also on the AdBoard, it is mainly for German Speakers, but those who are
close to Nuremberg are happy to join, I also approached some of you
already) with regards to Unit support, this is a very recent F# description
of its Unit library:
http://msdn.microsoft.com/en-us/windowsmobile/dd233243(v=vs.90).aspx

Aside from obvious checks like adding only values of the same quantity it
shows striking similarity with JSR 308 Unit Type Checkers. While <cm> looks
a bit more like Java Generics, it does work practically like an annotation
along the lines of @cm which you can do with 308.

I just heard from Mike Milinkovich, Microsoft wants to put many .NET
related project under Open Source (MIT license), too. Not sure, if F# or
the Units of Measurement framework was part of that. If it did, we'd
certainly talk to those guys and see, what we can learn from each other,
particularly in areas like UCUM, JSON and other means of unit-consistent
data exchange between language boundaries.

Regards,
Werner


Units of Measure (F#)

Werner Keil 11/12/2014
 
 
Close
loading
Please Confirm
Close