[webkit-dev] For your consideration: Naming scheme for fooIfExists/ensureFoo

Maciej Stachowiak mjs at apple.com
Tue Jul 2 17:05:38 PDT 2013


On Jul 1, 2013, at 7:31 PM, Brady Eidson <beidson at apple.com> wrote:

> 
> On Jul 1, 2013, at 5:27 PM, Ryosuke Niwa <rniwa at webkit.org> wrote:
> 
>> I concur.  Maybe
>> StyleResolver* styleResolverIfExists()
>> StyleResolver& styleResolver()
>> ?
> 
> I concur with this.
> 
> For this entire discussion, this is where I was hoping it was headed.

I like. Maybe we should use this naming pattern and type signature even when only one or the other variant exists?

Regards,
Maciej




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20130702/718b73ff/attachment.html>


More information about the webkit-dev mailing list