[swift-evolution] [Proposal Draft] Provide Custom Collections for Dictionary Keys and Values

Adrian Zubarev adrian.zubarev at devandartist.com
Sun Nov 20 04:02:50 CST 2016


Just another pitch.

Do we really want the DocumentValues to be a MutableCollection? There are default implementations like sort which would destroy the correctness of your unordered dictionary. IMO all mutating functionality should be added manually to DocumentValues to ensure that it does the right in-place mutation.

Adrian Zubarev
Sent with Airmail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20161120/67401be0/attachment.html>

More information about the swift-evolution mailing list