Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Dave Abrahams via swift-users <swift-users <at> swift.org>
Subject: Re: Source code " : " guidelines
Newsgroups: gmane.comp.lang.swift.user
Date: Friday 25th March 2016 15:28:45 UTC (7 months ago)
on Sat Dec 05 2015, Paul Schifferer  wrote:

> My personal preference is to put a space on both sides of the colon when
it’s used for declaration or extension:
>
> class SomeClass : SomeProtocol {
>   var name : String
> }
>
> and a space only after it’s used for providing a value (as in a
function parameter):
>
> object.callSomething(value: v)

That's the style we use in the Swift standard library, FWIW.
-- 
Dave

_______________________________________________
swift-users mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-users
 
CD: 2ms