> Le 28 nov. 2017 à 22:56, Ben Rimmington via swift-evolution 
> <swift-evolution@swift.org> a écrit :
> 
> I suggest using different subscripts for function/method calls and properties:
> 

While I perfectly understand why subscript is the best way to represent dynamic 
property, I don’t get how it help to abuse it to implement dynamic methods. 
Methods are not l-value, so why do you want to use a subscript for them ?

> * `value(...)`      ==> `value[dynamicFunction: ""](...)`
> * `value.name(...)` ==> `value[dynamicFunction: "name"](...)`
> * `value.name`      ==> `value[dynamicProperty: "name"]`
> …
> _______________________________________________
> swift-evolution mailing list
> swift-evolution@swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution

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

Reply via email to