[swift-evolution] [swift-evolution-announce] [Review] SE-0111: Remove type system significance of function argument labels

Scott James Remnant scott at netsplit.com
Thu Jun 30 13:56:14 CDT 2016

> They already *are* type compatible. This works right now:
> var a : (ofHits: Int, forRuns: Int) -> Bool = meetsBattingAverage
> a = sinkBattleship
> // ???
> a(ofHits: 1, forRuns: 2)

Your proposal does not make it clear that this works (which is surprising to me).

I would argue the proposal the other way: that there should be an error on line 2, and this should not be permitted implicitly.


More information about the swift-evolution mailing list