Let me clarify my previous post. I had to say: “These errors (“ meter / yard conversion errors ”) are automatically SELECTED (not“ processed ”), simply using my Scalar class. All unit conversions are done automatically. This is the easy part.
The more difficult part is checking for device inconsistencies, for example, adding length to speed. This raises the problem of dynamic and static type checking. I agree that a static check is usually preferable, but only if this can be done without sacrificing usability.
I have seen at least two “projects” for static checking of units, but I have never heard of anyone really using them for real work. If someone knows about the case when they were used, let me know. Until you use the software for real work, you do not know what problems will arise.
As I wrote above, I am currently using my Scalar class (http://russp.us/scalarscala.htm) to run R & D in ATC. I needed to make a lot of settings for convenience and convenience, but it works well for me. I would like to consider the static implementation of units if the proven goes, but at the moment I feel that I have essentially 99% of the cost of such a thing. Hey, the vast majority of scientists and engineers just use “Doubles,” so cut me a bit!
Russ P.
source share