if (Boolean)

Everything inside an if statement is automatically coerced into a Boolean.

Either it is or it isn't.

It's not more clear to write != null because an if statement cannot possibly be anything other than true or false. In this case, null or not null. Writing it out is redundant (and more code).

Recommended reading:
http://opensource.adobe.com/wiki/display/flexsdk/Coding+Conventions

Specific to this case:
http://opensource.adobe.com/wiki/display/flexsdk/Coding+Conventions#CodingConventions-Expressions
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to