3 ms·
I'm certain he was using True and False as arbitrary values. It's a shame his point was missed. Please try to focus on his actual argument.
by ceol 15y ago
I'm certain he was using True and False as arbitrary values. It's a shame his point was missed. Please try to focus on his actual argument.
- marshray 15y agoI'm not so convinced that it's not a fundamental thing. Maybe someone wants to post a 'better' example and we'll see where it goes?
- ceol 15y agoHow about: if (condition()) return 10; return 20; versus val = 20; if (condition()) val = 10; return val;
- pka 15y agoWell: val = condition() ? 20 : 10; return val;
- jonathanwallace 15y agoDid you invert the logic of the parent post on purpose?
- marshray 15y agoOr even: return condition() ? 10 : 20;