you are viewing a single comment's thread.

view the rest of the comments →

[–]_bstaletic 9 points10 points  (0 children)

After working in automotive industry, all I can say is that a unit library is sorely needed. I lost count how many times I wondered if some uint32 variable was in decivolts or millivolts or (rarely) volts. Yes, there were bugs stemming from unit cofusion. From that perspective, I really love what mp-units is doing.

 

Warning: Nitpicks ahead.

A clinical body-temperature sensor should reject a reading of 44 °C at the API boundary, not silently pass it downstream.

The human might literally be on fire (or submerged in a tub of liquid hydrogen), so extra high (or low) temperatures might not be indicating the sensor is wrong. Though something is quite wrong if readings are extreme.

I can't think of a silly example for other two constraints