[swift-evolution] [Proposal Idea] dot shorthand for instance members

Tino Heth 2th at gmx.de
Fri Dec 18 09:14:24 CST 2015


> As it is right now in Swift, accessing methods directly gives you a curried function back, which expects the object instance as argument in the first call, and the rest in the second call.
That was my first thought when I read the proposal - and as there is already a change planned for currying, it could be easy to change the way it works for methods.

I really don't think that ".method()" improves clarity, but "Type.method" definitely does.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151218/12f82841/attachment.html>


More information about the swift-evolution mailing list