W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2014

[Bug 27008] "Initializing objects from iterables" needs syntax

From: <bugzilla@jessica.w3.org>
Date: Thu, 09 Oct 2014 15:26:06 +0000
To: public-script-coord@w3.org
Message-ID: <bug-27008-3890-65ju7tT4wL@http.www.w3.org/Bugs/Public/>

--- Comment #4 from Anne <annevk@annevk.nl> ---
Please forget about the current IDL syntax for Headers. It is not important.

A Headers instance is iterable so we would not have to specialcase it. This is
a bit slower, but that seems fine since it's not a critical path.

I thought a normal object would also be iterable and that Domenic's proposal
would do the right thing for { "H" : "V", "H2" : "V2" }.

My question I guess is whether HeadersInit should just become an alias for
"any" then or if we can do something better.

You are receiving this mail because:
You are on the CC list for the bug.
Received on Thursday, 9 October 2014 15:26:08 UTC

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