Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


My C/C++ compiler will give a warning on 'if (foo=3)'.

Python will throw a SyntaxError on 'if foo = 3:'.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: