2 ms·
I'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?
by marshray 15y ago
I'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;