Martin Thomson:
> I know that this is not good practice, but is there something written
> down somewhere explaining why?
I don’t know if it’s written down somewhere. Using dictionary types for
IDL attributes is forbidden by the spec, because it would mean that a
new copy of the object would need
Yep, thanks for that. I somehow missed the bit where it says, very
clearly, that attributes MUST NOT be dictionaries.
I was looking for something to give someone else who doesn't like
explanations and prefers reading from the scripture. Your explanation
matches my understanding.
BTW, there are
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
I know that this is not good practice, but is there something written
down somewhere explaining why?
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform
4 matches
Mail list logo