On Tuesday, 16 August 2016 at 06:36:25 UTC, Jacob Carlborg wrote:
On 2016-08-16 08:13, Ethan Watson wrote:
For Objective-C it's possible to use the Objective-C runtime
functions to access some of this information. Based on a method
you can access the types of the arguments and the return type.
Although this data is represented as strings, in a semi mangled
format. All this should be accessible in Swift as well but will
only (I assume) work for Swift methods that can be called from
Objective-C. "Native" Swift methods support other features that
are not accessible in Objective-C, like generics.
Yeah, this is what I thought was possible with Swift. So thanks
for that.