8 ms·
3: I've rarely seen "Yoda conditions" [1] in the wild. I think it's because most compilers will output a warning when doing an assignment inside an if statement
by pagekalisedown 14y ago
3: I've rarely seen "Yoda conditions" [1] in the wild. I think it's because most compilers will output a warning when doing an assignment inside an if statement.
[1] http://www.dodgycoder.net/2011/11/yoda-conditions-pokemon-exception.html http://www.dodgycoder.net/2011/11/yoda-conditions-pokemon-ex...