I had no idea. That is crazy cool. Do you have any recommended resources for learning how this works behind the scenes?
(I tried implementing something similar in Swift, without knowledge of prior examples, so probably ended up doing it in a really dumb way. I tried using structs ('Quantities') containing the underlying value and also dimensional information, and then enabling mathematical operations using operator overloading and generics. I'd love to know of a better/"proper" way of implementing it though. The big unknown for me was the best underlying type/data structure to use to represent SI dimensions, including fractional dimensions, and that would allow them to be combined algebraically. Might just have to have another go this weekend following F#'s example!)
Edit: found this paper if anyone's interested http://research.microsoft.com/en-us/um/people/akenn/units/CE...