Kernel prepatch 3.11-rc4
Kernel prepatch 3.11-rc4
Posted Aug 6, 2013 7:23 UTC (Tue) by dgm (subscriber, #49227)In reply to: Kernel prepatch 3.11-rc4 by error27
Parent article: Kernel prepatch 3.11-rc4
How do you catch this, then:
some_function(x = what_ever, more_args);specially when "x = ..." comes from macro expansion?
Yoda conditions are VERY useful. You don't even need an static checker. In forcing yourself to slowdown to write the condition reversed, _you_ will catch the mistake before it even reaches the compiler. Worse is better.
