[swift-evolution] named parameters - why hidden first?/proposal interest

Dave Abrahams dabrahams at apple.com
Thu Jan 21 14:52:28 CST 2016

on Thu Jan 21 2016, Charles Constant <swift-evolution at swift.org> wrote:

>> say("hello")
>> is a big improvement, which IMO perfectly illustrates why we want the
>> default as it is.
> Maybe so, but there just has to be some way to do this that doesn't bake
> the design into the entirety of the Swift language. Is there some way Apple
> could implement this that only affects Swift imports/exports with Obj-C?
> Maybe there's not, but if there is, that seems like a better option.
> If Obj-C had never existed, would any sane person ever have suggested that
> Swift treat the first parameter differently than the rest? It kinda makes
> sense with Obj-C syntax, but it stands out like a sore thumb in Swift.

I disagree with your conclusion, but again, I'm going to hold off
further discussion until the review period.  Please bring it up again
there and we can have a full exploration of the pros and cons of the
current approach.

More information about the swift-evolution mailing list