[swift-evolution] [Pitch] Align label behavior for subscripts
xiaodi.wu at gmail.com
Tue Sep 20 10:53:43 CDT 2016
I agree, no obvious win to revisiting, best to keep source compatibility.
On Tue, Sep 20, 2016 at 10:43 Douglas Gregor via swift-evolution <
swift-evolution at swift.org> wrote:
> On Sep 20, 2016, at 3:36 AM, Adrian Zubarev via swift-evolution <
> swift-evolution at swift.org> wrote:
> This is probably something additional and it might already have been
> discussed here somewhere, I apologize if I missed that talk.
> The rule for parameter labels on functions was fixed in Swift, but now it
> kinda feels odd to have a different pair of rules for subscripts (at least
> it does feel odd to me).
> FWIW, operator functions, e.g.,
> func +(lhs: Int, rhs: Int) -> Int
> have the same rule as subscripts.
> Personally, I don’t want to ever revisit these rules again. They’ve
> changed with every major Swift release, and I feel that we’ve landed in the
> right place.
> - Doug
> swift-evolution mailing list
> swift-evolution at swift.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution