Some of us don't have backwards temperature systems, and so we should allow readings to be in whichever temperature system you prefer. Something like the following:
fn read_temperature(&mut self, temp: Temperature) { ... }
enum Temperature {
Celsius,
Fahrenheit
}
Some of us don't have backwards temperature systems, and so we should allow readings to be in whichever temperature system you prefer. Something like the following: