[webkit-dev] Using C++ constant local variables in WebKit

Antti Koivisto koivisto at iki.fi
Thu Dec 1 06:49:04 PST 2011

On Thu, Dec 1, 2011 at 4:26 AM, Ojan Vafai <ojan at chromium.org> wrote:

> I don't mind using const in some cases, but I share Darin's concern of
> littering the code with consts. I'd prefer that
we come up with a fairly conservative guideline about when to use it. I'm
> not sure what that would look like. We could start with, what's special
> about this case, or string parsing in general that makes using const more
> valuable?

Littering the code with anything is bad. Has misuse of consts been a
significant practical problem? Perhaps we don't need a specific rule here.


> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20111201/bb33f3c5/attachment.html>

More information about the webkit-dev mailing list