[swift-evolution] [Guidelines, First Argument Labels]: Prepositions inside the parens

Matt Whiteside mwhiteside.dev at gmail.com
Thu Feb 11 14:08:54 CST 2016


> On Feb 11, 2016, at 11:35, Douglas Gregor via swift-evolution <swift-evolution at swift.org> wrote:
> 
> 
>> On Feb 11, 2016, at 10:53 AM, Dave Abrahams via swift-evolution <swift-evolution at swift.org> wrote:
>> 
>> 
>> on Thu Feb 11 2016, Charles Kissinger <swift-evolution at swift.org> wrote:
>> 
>> That's nice!  What do you think about moving “of” back out of the
>> parens?  Does that help or hurt?
> 
> 
> And lo!, a diff appeared!
> 
> 	https://github.com/apple/swift-3-api-guidelines-review/commit/3f965346f1edea804a9bc6223d2824f43687e92f
> 
> 	- Doug


I think they almost all read better with “of” inside the parens, except for ones that end up with a standalone “of", like this:

func column(of matrix: NSMatrix) -> Int
func columnOf(matrix: NSMatrix) -> Int

To my eyes the red line reads worse in this case.

Matt

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160211/88618e9e/attachment.html>


More information about the swift-evolution mailing list