On Wednesday, July 25, 2012 3:04:31 PM UTC+3, Justin Lebar wrote: > > The next step is to s/nsnull/nullptr/ in the codebase, and get rid of > nsnull. > > Forgive my ignorance, but how does this affect NULL? Would that be > deprecated in favor of nullptr as well? Should we use nsnull instead > of NULL in new code, in anticipation of the nsnull --> nullptr switch?
That would be a logical next step, for sure. I'd definitely say nullptr should be used instead of NULL where possible, because the extra type safety is valuable. I guess it would make sense to try mass-changing NULL to nullptr, but I'm not sure if we can realistically undefine it or redefine it to nullptr, so people would still be able to use it. Maybe add "use nullptr instead of NULL" to coding guidelines to encourage it. _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform