Possible Duplicate:
How to check for equals? (0 == i) or (i == 0)
In C/C++ one might prefer the former because of hard to find bugs when misspelling the equality operator as assignment. But in other languages, what are the pros and cons of one vs the other?