4 ms·
Agreed, plus obviously your "if" statement doesn't do the assignment to usefulMetric. One more way the ternary wins (along with functional languages that use "
by ludicast 10y ago
Agreed, plus obviously your "if" statement doesn't do the assignment to usefulMetric. One more way the ternary wins (along with functional languages that use "if"s as expressions).
- kbenson 10y agoD'oh! Fixed. Thanks. :)
- LgWoodenBadger 10y agoa "final" declaration (in Java) would have pointed that out through a compilation error ;)