On 2/14/16 5:50 PM, Martin Thomson wrote:
I know that this is not good practice

It really depends. There are some situations in which returning a dictionary is probably fine; ideally when what's meant is "a copy of the initialization data for this object". This is the situation with WebGLRenderingContext.getContextAttributes().

One thing worth keeping in mind in general, though, is the argument Allen makes in https://lists.w3.org/Archives/Public/public-script-coord/2014JanMar/0201.html

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

Reply via email to