[swift-evolution] [Pitch] Improving KeyPath

Eagle Offshore eagleoffshore at mac.com
Fri Aug 25 15:30:38 CDT 2017

Reflection mechanisms in general would let one make things like Codable and Keypaths simply a library capability/protocol extension rather than the special case one trick pony it is now.

More than any other feature discussed, full access to meta data such as memory layouts is the thing I most miss from Objective C.  

Given reflection/introspection, you can build KVC, Codable, and any number of other clever features yourself if you are so inclined.

Oh, and traits - want traits for composability.

> On Aug 25, 2017, at 11:43 AM, Joe Groff via swift-evolution <swift-evolution at swift.org> wrote:
> These would all be great additional features to eventually add to key paths. I think reflection mechanisms centered on key paths like what you describe would be a superior replacement for most of what Mirror attempts to provide.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170825/4f521e36/attachment.html>

More information about the swift-evolution mailing list