[swift-evolution] [Pitch] Property reflection
David Hart
david at hartbit.com
Fri May 27 01:52:36 CDT 2016
> On 27 May 2016, at 04:44, Austin Zheng via swift-evolution <swift-evolution at swift.org> wrote:
>
> My personal preference would be to honor access control, and consider ser/de separately (especially since there are so many other possible considerations for that feature). Access control in Swift isn't just another safety feature, it's also a boundary for things like the optimizer.
>
> To be honest, I expect the first big use of a feature like this to be turning JSON or XML received from a network call into model objects for an app. There are quite a few Objective-C libraries that use KVC to implement this functionality.
That's what I want to use it for and I'm fairly sure we need access to private properties for that.
More information about the swift-evolution
mailing list