[swift-evolution] [Review] SE-0161: Smart KeyPaths: Better Key-Value Coding for Swift

Joe Groff jgroff at apple.com
Mon Apr 3 13:35:16 CDT 2017

> On Apr 3, 2017, at 7:24 AM, Ricardo Parada via swift-evolution <swift-evolution at swift.org> wrote:
> By the way, does anybody know why the proposed syntax require a leading period for the key path?
> #keyPath(Family, .pets.first)

Grammatically, it's a series of postfix expression components, including property accesses `.foo`, subscripts `[bar]`, and optional operators `?` and `!`. The grammar is more uniform requiring the dot.


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

More information about the swift-evolution mailing list