> On Apr 3, 2017, at 7:24 AM, Ricardo Parada via swift-evolution > <[email protected]> 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. -Joe
_______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
