<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:&nbsp;Dictionary &amp; Set Enhancements ran from&nbsp;April 6...11, 2017. The proposal is&nbsp;<b class="">accepted</b><span class="">&nbsp;with some revisions regarding naming:</span></div><div class=""><br class=""></div><div class="">1) The key/value sequence of&nbsp;<font face="Menlo" class="">init</font>&nbsp;that does&nbsp;<span class="">not</span>&nbsp;take a closure resolving key conflicts will be named&nbsp;<span class="" style="font-family: Menlo;">init(uniqueKeysWithValues:)</span>.&nbsp;The core team felt that either possible implementation – a default way of coalescing keys, or&nbsp;<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&nbsp;<span class="" style="font-family: Menlo;">init(_:uniquingKeysWith:)</span>, and the two merge methods (mutating and non-mutating) named&nbsp;<font face="Menlo" class="">merge(_:uniquingKeysWith:)</font>&nbsp;and&nbsp;<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:&nbsp;<span class="" style="font-family: Menlo;">init</span><font face="Menlo" class="">&lt;S: Sequence, E&gt;</font><span class="" style="font-family: Menlo;">(grouping elements: S, by: (E) -&gt; Key)&nbsp;</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>