Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data structures section #4

Closed
domenic opened this issue Nov 2, 2016 · 1 comment · Fixed by whatwg/webidl#317
Closed

Data structures section #4

domenic opened this issue Nov 2, 2016 · 1 comment · Fixed by whatwg/webidl#317

Comments

@domenic
Copy link
Member

domenic commented Nov 2, 2016

Distinct from data types, I think.

In all cases we want clear instructions and examples around the verbiage for adding to/removing from/looking up in the collection.

Known used types:

  • Map (see module map)
  • List
    • Ordered
    • Can be indexed into, maybe with some notation
    • Maybe re-use ES's notation for "list literals"? Or not; we don't so far.
    • Easy conversion to/from Web IDL sequences, as explained in Web IDL somewhat informally.
  • Set (see ... CustomElementsRegistry? Not sure, that's kind of a map with lots of keys)
    • Can also be ordered (see DOMTokenList); default to insertion order
    • In an ordered set, does adding something that already exists replace, or does it remove and append at the end?
@annevk
Copy link
Member

annevk commented Nov 3, 2016

I guess I should go for "Primitive data types" and "Data structures" for now, looking at the terminology in Wikipedia.

Another data structure we have in DOM is "trees", though it hasn't seen adoption beyond DOM so far (I thought it might be useful for browsing contexts at some point, but maybe not).

annevk pushed a commit that referenced this issue Nov 7, 2016
@domenic domenic closed this as completed in #7 Nov 7, 2016
domenic added a commit that referenced this issue Nov 7, 2016
Closes #4. More work being discussed in #10.
domenic added a commit to whatwg/webidl that referenced this issue Feb 22, 2017
tobie pushed a commit to whatwg/webidl that referenced this issue Feb 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants