
9 Oct
2005
9 Oct
'05
10:35 p.m.
Geoffrey Romer wrote:
Would there be any interest in a library for attaching units (physical or otherwise) to numeric variables, so that the type system could enforce dimension- and unit-consistency in all calculations, and convert semi-automatically between compatible units?
To make this a little more concrete, here's a sketch of the kind of code such a library could enable:
Try searching the archives for "physical quantities" or "pqs"; you should find extensive discussion and references to several proposed libraries. -- Jonathan Turkanis www.kangaroologic.com