[webkit-dev] Code Style: Opinion on returning void

Michael Catanzaro mcatanzaro at igalia.com
Wed Feb 20 12:17:01 PST 2019


On Wed, Feb 20, 2019 at 12:33 PM, Simon Fraser <simon.fraser at apple.com> 
wrote:
> I find it mind bending. It makes me wonder if the author made a 
> coding error.

Yeah me too. It does seem to work nicely in Alex's CompletionHandler 
example, but still, I'd just add braces and return on an extra line if 
I was writing it.

Anyway, it seems we don't have any consensus here, so no need to create 
a rule.

Michael



More information about the webkit-dev mailing list