[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 12:18:00 PDT 2021


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

--- Comment #2 from Darin Adler <darin at apple.com> ---
I like early return when it’s a true "early exit". I think it can make it much easier to follow the logic of a function.

I don’t think we should insist on it when the two sides of the condition are parallel, especially when both are simple one-liners.

In practice, we are not enforcing an early return style.

-- 
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/65c84158/attachment-0001.htm>


More information about the webkit-unassigned mailing list