[webkit-dev] Naming scheme for fooIfExists/ensureFoo - Round 2

Jean-Yves Avenard jean-yves.avenard at apple.com
Thu Oct 3 15:12:31 PDT 2024


> 
> On 3 Oct 2024, at 1:48 pm, Ryosuke Niwa via webkit-dev <webkit-dev at lists.webkit.org> wrote:
> 
> StyleResolver* styleResolverIfExists();
> StyleResolver& styleResolver();

I myself prefer this one, it’s more concise in its most common use. 
It’s also the style I’ve personally seen the most around the code I’m involved with. So I adapted to that style. 

But happy to use either. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20241003/de65511d/attachment.htm>


More information about the webkit-dev mailing list