On Mon, 4 Mar 2024 09:51:16 GMT, Aleksey Shipilev <sh...@openjdk.org> wrote:
>> doc/hotspot-style.md line 730: >> >>> 728: Use `nullptr` >>> 729: >>> ([n2431](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2431.pdf)) >>> 730: rather than `NULL`. Don't use (constant expression or literal) 0 for >>> pointers. >> >> Should there be any discussion here of why we want to avoid `NULL`? >> Specifically the varying >> definitions and the pitfalls of `NULL` in varargs context. Also template >> and overload issues. > > I think it would be enough to write 1..2 sentences about this, and then defer > to N2431 already linked here for more details. I agree with Aleksey. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18101#discussion_r1511561200