[swift-evolution] [Pitch] Introduce user-defined dynamically "callable" types
Tino Heth
2th at gmx.de
Sat Nov 11 04:19:11 CST 2017
> Example Usage
>
Swift is quite flexible on what can act as a closure — would it be allowed to use a dynamic callable in that context?
I guess forwarding of
let closure: ([(String, Int)]) -> Int = DynamicCallableType()
to the dynamicCall method of DynamicCallableType isn’t that hard, but wouldn’t it be odd if the value of closure changes when you leave out its type?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20171111/80d9bec2/attachment.html>
More information about the swift-evolution
mailing list