This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 26947 - Fixed length sequences of varying types
Summary: Fixed length sequences of varying types
Status: NEW
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: WebIDL (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Cameron McCormack
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-01 12:45 UTC by Anne
Modified: 2017-12-06 10:49 UTC (History)
3 users (show)

See Also:


Attachments

Description Anne 2014-10-01 12:45:35 UTC
http://heycam.github.io/webidl/#idl-sequence

[[
sequence<T>
]]

When we know the length of the array we want to return, e.g. for an iterator value, would it help if we enumerated the length and types?

E.g. https://xhr.spec.whatwg.org/#formdata would probably return an array for each iterator value of length two where the first value is a ScalarValueString and the second a FormDataEntryValue.
Comment 1 Anne 2017-12-06 10:49:07 UTC
This still seems somewhat useful, also on the accepting side only wanting to accept two items in a list and not three.