over 3 years
ago -
undertowgames
-
Direct link
@thomasfindlay94 @DThompsonDev Shorter != cleaner. Personally I think that's more difficult to read: if (condition) { performAction(); } reads much more naturally. And with that trick it's easier to mess things up if you do some mistake with operator precedence or the language's short-circuit evaluation rules.