3 ms·
I use them conventionally -- it helps me avoid bugs like 'if(foo = 3)' instead of 'if(foo == 3)'. 'if(3 = foo)' just will not compile. The 'if(6.28 < theta)' is
by xyzzyz 16y ago
I use them conventionally -- it helps me avoid bugs like 'if(foo = 3)' instead of 'if(foo == 3)'. 'if(3 = foo)' just will not compile. The 'if(6.28 < theta)' is just a logical consequence.
- Luyt 16y agoMy C/C++ compiler will give a warning on 'if (foo=3)'. Python will throw a SyntaxError on 'if foo = 3:'.