[Webkit-unassigned] [Bug 128751] [check-webkit-style] False positive when using the ternary operators with multiple lines.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 21 06:40:29 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=128751


László Langó <llango.u-szeged at partner.samsung.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |llango.u-szeged at partner.sam
                   |                            |sung.com




--- Comment #1 from László Langó <llango.u-szeged at partner.samsung.com>  2014-03-21 06:40:50 PST ---
I think the ternary operator should be use only in short cases. If your code with ternary operator does not fit into one line, then you should use if-else instead. We don't have any rule for this case as I know, but maybe this would be useful.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list