> On Apr 5, 2017, at 11:13 PM, Xiaodi Wu <[email protected]> wrote:
> 
> It is also worth mentioning that, with the sigil, the `keyPath` label may not 
> be so necessary:
> 
>       print(luke[\.friends[0].name])
>       // or, if the suggestion above is accepted
>       print(luke[\.friends[0].name\])


I think the label makes it more obvious, specially when using it with a key 
path variable:

let someKeyPath = ... 
person[keyPath: someKeyPath]

_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to