[Webkit-unassigned] [Bug 225817] Proposed change to WebKit Code Style Guidelines for if-return-else-return

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 14 15:06:05 PDT 2021


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

--- Comment #4 from Ryosuke Niwa <rniwa at webkit.org> ---
Yeah, allowing else clause in the case multiple conditions are parallel to one another makes sense to me.

But rather than leaving it to author & reviewed to make arbitrary decision, can we codify that?

I'm afraid some people will ignore this and start arguing / writing code without an early return even in the case where an early return and no-else clause is more appropriate because there is no logical parallelism between the two.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210514/47e73b49/attachment-0001.htm>


More information about the webkit-unassigned mailing list