3 ms·
Great post! Your code example for isHot() seems round the wrong way; also doing something like “return temperature > 100” is probably more idiomatic than using
by joppy 5y ago
Great post!
Your code example for isHot() seems round the wrong way; also doing something like “return temperature > 100” is probably more idiomatic than using if/else just to return true/false.
- paceaux 5y agoThanks. That's one of those where I have probably 100 cases in code I've written over the years and I can't find a single one when I actually needed it. I'm open to better examples.