[swift-evolution] Proposal: Introduce User-defined "Dynamic Member Lookup" Types

Joe DeCapo snoogansbc at gmail.com
Mon Dec 4 19:47:14 CST 2017


> On Dec 4, 2017, at 7:22 PM, Joe DeCapo via swift-evolution <swift-evolution at swift.org> wrote:
> 
>> The first one, has no static type info, no compile time checking, it's not self documenting, no type inference so people will be forced to use a dynamic reference at the call site to store the result, leading to more type loss, and all this spirals down.
> 
> From what I can gather, `dynamic` is used when declaring types, but there's no indication at call sites that what is being invoked is dynamic.

Upon rereading, I had assumed one could use `var` at the call site, but that may not be true. Even so, at the most there's still only one call site reference required, not for every following call site invocation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20171204/e4973402/attachment.html>


More information about the swift-evolution mailing list