Single type collections
Originator: | robnapier | ||
Number: | rdar://11678258 | Date Originated: | 15-Jun-2012 |
Status: | Duplicate | Resolved: | |
Product: | Product Version: | ||
Classification: | Reproducible: |
Cocoa collections can currently hold any type (id). It would often be useful to declare them as containing a single type (as in a generic) and provide compiler errors or warnings when this is violated. Most collections contain a single type, and type mismatch is a common source of runtime errors. These should be compile time errors.
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!