OrderedSet collection type (Swift)
| Originator: | wagner | ||
| Number: | rdar://20346354 | Date Originated: | 30-Mar-2015 05:20 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Swift 1.2 |
| Classification: | Enhancement | Reproducible: | Not Applicable |
Summary: Similar to how Swift includes a native Set type which is compatible with NSSet, it would be great if it included an OrderedSet type which is compatible with NSOrderedSet. Currently, if you require NSOrderedSet’s functionality, you must use it directly which means you miss all of Swift’s great features. You can’t create a typed NSOrderedSet, subscript an NSOrderedSet, or take advantage of the mutability guarantees which Swift provides. There is a significant downgrade in the developer experience when ordered-set requirement is required for an application written in Swift. This ticket is a request that you please improve it.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!