[swift-evolution] [swift-evolution-announce] [Review] SE-0111: Remove type system significance of function argument labels
Austin Zheng
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
requirements.
Austin
On Thu, Jun 30, 2016 at 11:56 AM, Scott James Remnant <scott at netsplit.com>
wrote:
> > 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.
>
> Scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160630/92ccb4ef/attachment.html>
More information about the swift-evolution
mailing list