+2011-06-29 Leandro Pereira <leandro@profusion.mobi>
+
+ Reviewed by Darin Adler.
+
+ Add note about cases where enums are preferred over bools on function parameters.
+ https://bugs.webkit.org/show_bug.cgi?id=63564
+
+ This matches the outcome of this webkit-dev thread:
+ https://lists.webkit.org/pipermail/webkit-dev/2010-December/015192.html
+
+ * coding/coding-style.html:
+
2011-05-31 Chris Evans <cevans@chromium.org>
Reviewed by Drew Yao.
</pre>
</li>
+<li>Prefer enums to bools on function parameters if callers are likely to be
+passing constants, since named constants are easier to read at the call
+site. An exception to this rule is a setter function, where the name of the
+function already makes clear what the boolean is.
+<h4 class="right">Right:</h4>
+<pre class="code">
+doSomething(something, AllowFooBar);
+paintTextWithShadows(context, ..., textStrokeWidth > 0, isHorizontal());
+setResizable(false);
+</pre>
+
+<h4 class="wrong">Wrong:</h4>
+<pre class="code">
+doSomething(something, false);
+setResizable(NotResizable);
+</pre>
+</li>
+
<li>Objective-C method names should follow the Cocoa naming guidelines —
they should read like a phrase and each piece of the selector should
start with a lowercase letter and use intercaps.</li>