As current style rules say that tests for zero/non-zero should all be done 
without equality comparisons. However, this rule can cause significant 
readability problems if blindly applied to strcmp: if (!strcmp(string, 
"foobar")) naturally reads as "does not equal".

I think that this strcmp should be an exception to this rule. Current WebCore 
uses both forms, with the one I propose being slightly more common.

- WBR, Alexey Proskuryakov

_______________________________________________
webkit-dev mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to