[swift-evolution] Fwd: Re: Smart KeyPaths

Ricardo Parada rparada at mac.com
Tue Mar 21 07:03:45 CDT 2017


You are right. I did not think of that. 

Sent from my iPhone

> On Mar 21, 2017, at 5:34 AM, Brent Royal-Gordon <brent at architechies.com> wrote:
> 
>> On Mar 20, 2017, at 9:12 PM, Ricardo Parada via swift-evolution <swift-evolution at swift.org> wrote:
>> 
>> If a character had to be used to denote key paths then I would prefer this one:
>> 
>> 1. Type:path.to.value and instance:path.to.value
>> 
>> I feel like the # screams at me. :-)
> 
> 
> If I write `foo[instance:path.to.value]`, how is Swift to know whether that's a key path or an argument label?
> 
> -- 
> Brent Royal-Gordon
> Architechies
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170321/28082aa7/attachment.html>


More information about the swift-evolution mailing list