Paulo Pinto:
You can handle units of measure via tuples structs, since you mention F#.(and other languages are ATS, Whiley, F*, Idris, etc, cover other forms of correctness). ...
Here I mentioned F*, not F#: http://research.microsoft.com/en-us/projects/fstar/ Bye, bearophile
