> On Nov 11, 2017, at 2:19 AM, Tino Heth via swift-evolution 
> <swift-evolution@swift.org> wrote:
> 
>> 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?

I’m not sure I understand what you’re getting at.  Can you show how this would 
work with the example in the motivation section?

-Chris


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

Reply via email to