Julien Chaffraix
unread,Jun 17, 2014, 4:18:42 PM6/17/14Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Nico Weber, Eric Seidel, Ravi Kasibhatla, blink-dev
> The usual answer is, as far as I know:
>
> * Not all compilers support C++11 yet (we're working on it). nullptr is a
> language feature.
> * Once they do, there'll be a time where we have language features but not
> library features. std::nullptr_t, the type of nullptr, is a library feature
> * Blink has its own nullptr emulation thing in
> third_party/WebKit/Source/wtf/NullPtr.h, inherited from WebKit, which can be
> used today
The reason I am asking is because contrary to Chromium, Blink already
has this emulation layer and people *are* using it. This email was
prompted by a review question and I was appalled to see that we still
advised people to use 0 when grep'ing for nullptr gives a lot of
results.
> * But in the interest of being consistent with the rest of chromium, it
> shouldn't be used
I think consistency between Blink's coding style and the code produced
is more important than that with another coding style. This is
especially true since Chromium is going to convert to using nullptr
once there is enough support.
Julien