W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2012

Re: Why are dictionary-typed attributes not allowed?

From: Cameron McCormack <cam@mcc.id.au>
Date: Fri, 22 Jun 2012 15:49:02 +1000
Message-ID: <4FE4074E.8000105@mcc.id.au>
To: Boris Zbarsky <bzbarsky@MIT.EDU>
CC: public-script-coord@w3.org
Cameron McCormack:
>> Because dictionaries are meant to be "pass by value" types, like
>> sequences. Because you would be returning a plain JS object – and a new
>> one each time at that – it wouldn't be suitable for use as an attribute
>> type.

Boris Zbarsky:
> I see.  It's perhaps worth having an informative note in the spec to
> this effect....

I've mentioned this now with wording like I have in #idl-sequence:


Received on Friday, 22 June 2012 05:49:36 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:06 UTC