[swift-evolution] Fwd: Re: Smart KeyPaths
Brent Royal-Gordon
brent at architechies.com
Tue Mar 21 04:34:18 CDT 2017
> 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/40d42fbd/attachment.html>
More information about the swift-evolution
mailing list