On 1/7/2014 8:04 PM, Kyle Huey wrote:

Since we seem to be voting now, I am moderately opposed to making XPCOM
method calls more boilerplate-y, and very opposed to removing
NS_ENSURE_SUCCESS without some sort of easy shorthand to test an nsresult
and print to the console if it is a failure.
We aren't voting any more. This has been discussed at length over the years, and the decision to use if (NS_WARN_IF()) is pretty much final.

The only outstanding question is whether we should have a form

if (NS_WARN_IF_FAILED(rv))

Or whether we should simply require

NS_WARN_IF(NS_FAILED(rv))

I am accepting input on this question in the other thread about it. Right now I'm leaning toward requiring the longer form.

--BDS

_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to