So
If (itemCount > 0) {... becomes If (0 < itemCount) {...
I think this stems from changing
If (itemCount== 0) {... to this If (0 == itemCount) {...
If (itemCount = 0) {...
Which means there's really no call for code that looks like this
If (! 0 < itemCount) {...}
The compiler will consistently read the code regardless of pretty formatting, nice variable names, and clear and concise expression of ideas. Humans are not compilers. Write your code for the Human audience. The compiler will cope regardless. It almost always does.
No comments:
Post a Comment