[webkit-dev] Do we have a style preference about const member functions?

Ryosuke Niwa rniwa at webkit.org
Mon May 30 16:08:53 PDT 2011


On Mon, May 30, 2011 at 4:02 PM, Geoffrey Garen <ggaren at apple.com> wrote:
>
> Do not use const member functions in *complex classes that do a lot more
> than hold one piece of data*
>

I'm not sure if the complexity of a class or holding piece of data are
useful criteria.  Looking at DOM or render tree, it seems that we don't want
to use const when *an object constitutes (i.e. object's data members are
essential in creating) a larger data structure such as a tree or a list*.

- Ryosuke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20110530/b699c2ea/attachment.html>


More information about the webkit-dev mailing list