[Swift] First class support for introspection
Originator: | amolloy | ||
Number: | rdar://17301920 | Date Originated: | 6/13/14 |
Status: | Duplicate | Resolved: | Duplicate 17177549 |
Product: | Developer Tools | Product Version: | |
Classification: | Reproducible: |
Currently, the Swift language does not directly support any form of introspection. True, it is possible to perform some introspection using the Objective-C runtime, but this appears to be a side effect of Swift’s relationship to Objective-C rather than an intentional design decision. Introspection is an important part of modern programming languages which puts a great deal of power into programmers hands. Without it, certain types of tasks become difficult or even impossible. This is particularly important for developers of reusable frameworks. Steps to Reproduce Search for an introspection API for the Swift language. Expected Results An introspection API would exist. Actual Results Some of Objective-C’s introspection functionality can be used with Swift, but much is missing and this should be part of Swift itself anyway. Configuration All Xcode Version Xcode 6 Beta 1 Additional Notes
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!