[swift-evolution] [Proposal draft #2] Naming Functions with Argument Labels
2th at gmx.de
Mon Jan 11 15:53:25 CST 2016
> 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.
(that's why I wanted to avoid the parenthesis in the first place…)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution