[webkit-dev] on coding-style
darin at apple.com
Fri Apr 12 16:54:34 PDT 2013
On Apr 12, 2013, at 3:33 PM, Karen Shaeffer <shaeffer at neuralscape.com> wrote:
> Shouldn't the coding-style documentation be updated to use nullptr?
We may want to update the guidelines to tell people to use nullptr where it works. We definitely put some effort into making it usable in certain contexts; we originally added it because we preferred this:
x = nullptr;
for our smart pointer types such as OwnPtr. The tricky part is being clear in the coding guidelines about where it’s OK to use nullptr; if we used it everywhere we had a 0 for a pointer today, we would run into compiler portability problems.
If someone figures out how to be clear on that point, where it should and should not be used, we should indeed update the coding style and the coding style document.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-dev