[webkit-dev] Bools are strictly worse than enums
eric at webkit.org
Fri Dec 3 13:28:58 PST 2010
It seems to me, that using bool types for function arguments is strictly
worse than using an enum. An enum is always clearer and can be easily
casted to a bool if needed.
Is much less readable than:
Do any C++ gurus have further information to add here? Is my (simple)
analysis here incorrect? If not, seems we should forbid boolean values in
multi-argument methods/constructors in our style and add checks to
check-webkit-style to prevent further introduction of these confusing
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-dev