Dmitry A. Soshnikov:

> which in sugar form is:
>
> var vars = context.getPanel?("html", true).getInspectorVars();

I don't think this is real use case. It seems like a design mistake.
Why would you check for existence  "html" panel? If the "html" panel
does not exist in the Firebug something will be wrong in the whole
application. With code like this, they will need more time to debug
and fixing.

The same case would be:

document.getElementById('someID')?.getAttribute('someAttr');

Again I don't see any reasons to check for existence that element. If
it does not exist something is definitely wrong with my application.

Maybe I am missing something, but existential operator will solve some
design mistakes. I don't think that the language should fix script
authors mistakes.

Regards.
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to