Hi Chris,

> On Nov 28, 2017, at 8:54 PM, Chris Lattner via swift-evolution 
> <swift-evolution@swift.org> wrote:
> 
> “post.author" always invokes the DynamicMemberLookupProtocol proposal.
> “post.author()” would invoke the “DynamicCallableWithKeywordsToo” hook in the 
> dynamic callable proposal:
> https://gist.github.com/lattner/a6257f425f55fe39fd6ac7a2354d693d 
> <https://gist.github.com/lattner/a6257f425f55fe39fd6ac7a2354d693d>
Elsewhere in Swift, it is generally the case that

foo.bar()

is equivalent to

let fn = foo.bar
fn()

Would this equivalence still hold with your proposal(s)?

Slava
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to