Uh oh!
There was an error while loading. Please reload this page.
Clarify Extend behaviour wrt existing keys - #38636
Conversation
rust-highfive
commented
Dec 27, 2016
r? @aturon (rust_highfive has picked a reviewer for you, use r? to override) |
shahn
commented
Dec 27, 2016
steveklabnik
commented
Jan 3, 2017
@rust-lang/libs is this something we want to guarantee here? |
sfackler
commented
Jan 3, 2017
I would probably move this documentation to the implementations themselves - this wording may not make sense for a multimap or multiset, for example. |
pnkfelix
commented
Jan 3, 2017
@sfackler one might argue the phrase "the entry is updated" is open-ended enough to cover multimaps/multisets. It is certainly more appropos than saying "the entry is replaced", at least to me. (I assume that the critical detail the author desires is to convey that such entries are not ignored during the traversal. Is that open-ended enough to commit to?) |
shahn
commented
Jan 3, 2017
Yes indeed, that's what this is about. How about the following wording: the entry is updated or newly added if multiple elements with the same key are permitted."? |
shahn
commented
Jan 5, 2017
I have pondered a bit on the wording and provided an updated wording, is that better? I would really like to avoid making the Extend behaviour implementation documented, because that's a lot of places to look and a chance for confusing behaviour/inconsistent docs to creep in. |
steveklabnik
commented
Jan 5, 2017
sfackler
commented
Jan 5, 2017
👍 |
steveklabnik
commented
Jan 11, 2017
@bors: r+ rollup thanks! |
bors
commented
Jan 11, 2017
📌 Commit 74b2587 has been approved by |
Clarify Extend behaviour wrt existing keys This seems to be consistent with all the Extend implementations I found, and isn't documented anywhere else afaik.
This seems to be consistent with all the Extend implementations I found, and isn't documented anywhere else afaik.