<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><div id="bloop_customfont" style="margin: 0px;">My personal preference is to put a space on both sides of the colon when it’s used for declaration or extension:</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">class SomeClass : SomeProtocol {</div><div id="bloop_customfont" style="margin: 0px;"><div id="bloop_customfont" style="margin: 0px;"> var name : String</div></div><div id="bloop_customfont" style="margin: 0px;">}</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">and a space only after it’s used for providing a value (as in a function parameter):</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">object.callSomething(value: v)</div><div id="bloop_sign_1449340552917496064" class="bloop_sign"><div style="font-family: helvetica, arial;"><br></div><div style="font-family: helvetica, arial;">-- <br></div><div style="font-family: helvetica, arial;">Paul</div></div></div> <div id="bloop_sign_1449341001498508032" class="bloop_sign"><div style="font-family:helvetica,arial;font-size:13px"><br></div></div><p class="airmail_on">On December 5, 2015 at 10:24:40, Kostiantyn Koval (<a href="mailto:konstantin.koval1@gmail.com">konstantin.koval1@gmail.com</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>Hi Swift team, <br><br>Is there a perfect style for ":" when declaring a Type?<br>I have seen 2 styles in Swift source code.<br><br>extension Deck : Equatable<br>extension Deck: Equatable <br><br>Is there any guideline for it or both are acceptable?<br><br>Best Regards,<br>Kostiantyn<br>_______________________________________________<br>swift-users mailing list<br>swift-users@swift.org<br>https://lists.swift.org/mailman/listinfo/swift-users<br></div></div></span></blockquote></body></html>