[swift-evolution] [Pitch #2] Introduce User-defined "Dynamic Member Lookup" Types
Brent Royal-Gordon
brent at architechies.com
Mon Nov 27 20:21:30 CST 2017
> On Nov 25, 2017, at 3:16 PM, Chris Lattner via swift-evolution <swift-evolution at swift.org> wrote:
>
> Just to talk to myself a bit here, but I’ve come to realize that the right design really is to have a simple empty marker protocol like this:
If you're reaching this point. why have a marker protocol at all? Why not treat `subscript(dynamicMember:)` specially on any type that has it, or have an `@dynamicMember subscript(_:)` attribute, or introduce an entire new `dynamicMember(_:)` declaration?
--
Brent Royal-Gordon
Architechies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20171127/3b13c0cf/attachment.html>
More information about the swift-evolution
mailing list