Thread
:
Clean Coding - Common Sense
View Single Post
#
2
04-01-2007, 12:58 AM
cbk1994
the fake one
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
Quote:
Originally Posted by
JkWhoSaysNi
checking "if (var == true)" is redundant unless you're not sure on the type of the variable.
Works fine ... to me it seems simpler.
if ( var == 1 )
better?
__________________
cbk1994
View Public Profile
View GraalOnline Profile
Visit cbk1994's homepage!
Find all posts by cbk1994