Skip to content

Tweak some of the definitions for maps #34

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

Merged
merged 2 commits into from
Nov 17, 2016
Merged

Conversation

domenic
Copy link
Member

@domenic domenic commented Nov 16, 2016

This makes some changes to the map verbiage which were discovered to be helpful while working on whatwg/html#2054. Concretely, it:

  • Adds an explicit concept of getting
  • Makes the shorthands for set/remove/exists link to the longhands, instead of defining a second similar term
  • Changes the IDs and linking texts of the concepts to be shorter and more useful

This makes some changes to the map verbiage which were discovered to be helpful while working on whatwg/html#2054. Concretely, it:

- Adds an explicit concept of getting
- Makes the shorthands for set/remove/exists link to the longhands, instead of defining a second similar term
- Changes the IDs and linking texts of the concepts to be shorter and more useful
<a>ordered map</a> |map| and key |key|, "|map|[|key|] <dfn export for=map>exists</dfn>".
<p>An <a>ordered map</a> <dfn export for=map lt=exists|contains>contains an entry with a given
key</dfn> if there exists a key/value pair with that key. We can also denote this by saying that,
for an <a>ordered map</a> |map| and key |key|, "|map|[|key|] <a for=map>exists</dfn>".
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

End tag here is wrong. I guess I can fix that.

@annevk
Copy link
Member

annevk commented Nov 17, 2016

Found another issue when running make, fixed all I think, but would appreciate another look.

@domenic
Copy link
Member Author

domenic commented Nov 17, 2016

Thanks. I should really be running make instead of make remote.

@domenic domenic merged commit 5adb7fa into master Nov 17, 2016
@domenic domenic deleted the tweak-data-structures branch November 17, 2016 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants