On Wed, Mar 5, 2014 at 12:55 PM, Josh Matthews <j...@joshmatthews.net>wrote:
> It can be, but there are cases when that would be wasted effort. I'm open > either way. In XPCOM terms, the vast majority of QueryInterface calls do more with the returned pointer than a null check. So I think you'll find it well worthwhile to provide the maximally-convenient checked downcast. Even when you just need instanceof, can it be shortened to if (HTMLTitleElement::hasInstance(element)) ? Rob -- Jtehsauts tshaei dS,o n" Wohfy Mdaon yhoaus eanuttehrotraiitny eovni le atrhtohu gthot sf oirng iyvoeu rs ihnesa.r"t sS?o Whhei csha iids teoa stiheer :p atroa lsyazye,d 'mYaonu,r "sGients uapr,e tfaokreg iyvoeunr, 'm aotr atnod sgaoy ,h o'mGee.t" uTph eann dt hwea lmka'n? gBoutt uIp waanndt wyeonut thoo mken.o w _______________________________________________ dev-servo mailing list dev-servo@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-servo