F# Units of Measure


Remember the $125 million dollar mistake where a failure to convert English units into metric units caused the Mars probe to fly off course?  Wouldn’t it be cool if you software program had the units of measure built into the code?  I’m not sure if it would have prevented the Mars probe mistake, but it may make your next application more robust.  A feature of F#, called Units of Measure, allows your code to include inches or kilograms or some unit of measurement unique to your business logic or scienteific domain.  It can provide intellisence and other development time feedback in error messages or unit tests.
 
S. Somasegar, Senior Vice President, Developer Division at Microsoft, recently blogged on the subject
 
Check out some of these references for more on the subject:
 
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s