I really like this proposal and looking forward to the objc selector binding.
···
On 11 Jan 2016, at 22:54, Douglas Gregor via swift-evolution <swift-evolution@swift.org> wrote:
On Jan 11, 2016, at 1:53 PM, Tino Heth <2th@gmx.de <mailto:2th@gmx.de>> wrote:
We discussed this a looooong while back and decided that we wanted the ‘_’ to emphasize that there is an argument there. The difference between “foo(:bar:)” and “foo(bar:)” is barely visible.
That is true, but I think it is very uncommon to have such a set of methods — and afaics, it would violate the guidelines for method names.
But speaking of additional characters that might be useful:
What about the parameter types? When they are needed to identify the exact function, it would be nice if they could be included as well.foo(bar:(Int))
(that's why I wanted to avoid the parenthesis in the first place…)It’s grammatically ambiguous if you don’t have the “:)” at the end and, IMO, it’s not important enough to have special syntax for this: one can still coerce to a specific function type.
- Doug
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution