[swift-evolution] [swift-evolution-announce] [Review] SE-0111: Remove type system significance of function argument labels
austinzheng at gmail.com
Thu Jun 30 13:57:27 CDT 2016
This should probably be a motivating example.
I'll add an Alternative to keep the present behavior and tighten the
On Thu, Jun 30, 2016 at 11:56 AM, Scott James Remnant <scott at netsplit.com>
> > 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution