[swift-evolution] named parameters - why hidden first?/proposal interest
charles at charlesism.com
Sat Jan 23 17:06:11 CST 2016
> but what I found was that my APIs generally fell in line naturally with
> the defaults.
And when they didn't, looking for a way to take advantage of the defaults
> led to a better API
I'm not sure I follow this. A change would result in:
- the rule of "least surprise"
- developers can edit function definitions more quickly
- one extra character (i.e.: from "*foo: Int*" to "*_ foo: Int*")
- one missed opportunity to set an example of "good style"
Am I missing something?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution