[swift-evolution] When to use argument labels (a new approach)

Matt Whiteside mwhiteside.dev at gmail.com
Wed Feb 3 10:12:49 CST 2016

I’m in agreement with what Ricardo is saying here:

> I personally like it and I agree with all except the following:
> let p = someFont.glyph("propellor")
> let p = someFont.glyphWithName("propellor”)

To be more specific, this example looks good to me:
a.transitionToScene(.GreatHall)               // yes

but this one:
let p = someFont.glyph("propellor")           // yes

somehow doesn’t.  Maybe because it reads more like subscripting a dictionary.  As a result, I think this second example kind of detracts from this section of the guidelines.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160203/0807c205/attachment.html>

More information about the swift-evolution mailing list