[swift-evolution] When to use argument labels (a new approach)
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...
More information about the swift-evolution