<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">Hello Swift Community,</div><div class=""><br class=""></div><div class="">The review of SE-165: Dictionary & Set Enhancements ran from April 6...11, 2017. The proposal is <b class="">accepted</b><span class=""> with some revisions regarding naming:</span></div><div class=""><br class=""></div><div class="">1) The key/value sequence of <font face="Menlo" class="">init</font> that does <span class="">not</span> take a closure resolving key conflicts will be named <span class="" style="font-family: Menlo;">init(uniqueKeysWithValues:)</span>. The core team felt that either possible implementation – a default way of coalescing keys, or <span class="" style="font-family: Menlo;">fatalError</span>-ing on conflicts – could be surprising to users in ways that could easily be missed in testing. A failable initializer would probably result in frequent force-unwrapping. Giving the initializer an argument label that clearly states the uniqueness requirement fulfills the goal of making sure the caller is aware of the requirement.</div><div class=""><br class=""></div><div class="">2) The initializer that takes a sequence of pairs and a closure for conflicts will be named <span class="" style="font-family: Menlo;">init(_:uniquingKeysWith:)</span>, and the two merge methods (mutating and non-mutating) named <font face="Menlo" class="">merge(_:uniquingKeysWith:)</font> and <font face="Menlo" class="">merging(_:uniquingKeysWith:)</font>.</div><div class=""><br class=""></div><div class="">3) The group-by method on Sequence will be made into an initializer on Dictionary: <span class="" style="font-family: Menlo;">init</span><font face="Menlo" class=""><S: Sequence, E></font><span class="" style="font-family: Menlo;">(grouping elements: S, by: (E) -> Key) </span><font face="Menlo" class="">where Value == [E], S.Iterator.Element == E</font></div><div class=""><font face="Menlo" class=""><br class=""></font></div><div class=""><div class="">The author will revise the proposal according. Thank you to everyone who participated in the review of what will be some really useful additions to Dictionary!</div><div class=""><br class=""></div><div class="">Ben Cohen</div><div class="">Review Manager</div><div class=""><br class=""></div><div class=""><br class=""></div></div></body></html>