<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">This is code from &nbsp;<a href="https://github.com/apple/swift-package-manager" class="">https://github.com/apple/swift-package-manager</a></div><div class="">public&nbsp;enum&nbsp;Error:&nbsp;ErrorType&nbsp;{</div><div class=""><div class="">}</div><div class=""><br class="">extension&nbsp;Package&nbsp;:&nbsp;Equatable&nbsp;{&nbsp;</div><div class="">}</div><div class=""><br class=""></div><div class=""><div class="">I see that in most palaces Apple prefer not having the space on the left side.&nbsp;</div><div class="">But it wan't sure if it's ok to make a PR for that :)</div><br class=""><br class=""><div class=""><div class="">Best Regards,</div><div class="">Kostiantyn</div></div></div></div><div apple-content-edited="true" class="">
<div class=""><div class=""><br class=""></div></div></div><div><blockquote type="cite" class=""><div class="">On 05 Dec 2015, at 19:48, Stephen Celis &lt;<a href="mailto:stephen.celis@gmail.com" class="">stephen.celis@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I believe Apple style prefers no space to the left:<div class=""><br class=""></div><div class=""><a href="https://twitter.com/_jackhl/status/646723367576276992" class="">https://twitter.com/_jackhl/status/646723367576276992</a></div><div class=""><br class=""></div><div class="">Stephen</div><div class=""><br class=""></div><div style="" class=""><blockquote type="cite" class=""><div class="">On Dec 5, 2015, at 1:43 PM, Paul Schifferer &lt;<a href="mailto:paul@schifferers.net" class="">paul@schifferers.net</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div id="bloop_customfont" style="font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; margin: 0px;" class=""><div id="bloop_customfont" style="margin: 0px;" class="">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;" class=""><br class=""></div><div id="bloop_customfont" style="margin: 0px;" class="">class SomeClass : SomeProtocol {</div><div id="bloop_customfont" style="margin: 0px;" class=""><div id="bloop_customfont" style="margin: 0px;" class="">&nbsp; var name : String</div></div><div id="bloop_customfont" style="margin: 0px;" class="">}</div><div id="bloop_customfont" style="margin: 0px;" class=""><br class=""></div><div id="bloop_customfont" style="margin: 0px;" class="">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;" class=""><br class=""></div><div id="bloop_customfont" style="margin: 0px;" class="">object.callSomething(value: v)</div><div id="bloop_sign_1449340552917496064" class="bloop_sign"><div style="font-family: helvetica, arial;" class=""><br class=""></div><div style="font-family: helvetica, arial;" class="">--&nbsp;<br class=""></div><div style="font-family: helvetica, arial;" class="">Paul</div></div></div><div id="bloop_sign_1449341001498508032" class="bloop_sign" style="font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div style="font-family: helvetica, arial; font-size: 13px;" class=""><br class=""></div></div><p class="airmail_on" style="font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">On December 5, 2015 at 10:24:40, Kostiantyn Koval (<a href="mailto:konstantin.koval1@gmail.com" class="">konstantin.koval1@gmail.com</a>) wrote:</p><blockquote type="cite" class="clean_bq" style="font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span class=""><div class=""><div class=""></div><div class="">Hi Swift team,<span class="Apple-converted-space">&nbsp;</span><br class=""><br class="">Is there a perfect style for ":" when declaring a Type?<br class="">I have seen 2 styles in Swift source code.<br class=""><br class="">extension Deck : Equatable<br class="">extension Deck: Equatable<span class="Apple-converted-space">&nbsp;</span><br class=""><br class="">Is there any guideline for it or both are acceptable?<br class=""><br class="">Best Regards,<br class="">Kostiantyn<br class="">_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class=""><a href="https://lists.swift.org/mailman/listinfo/swift-users" class="">https://lists.swift.org/mailman/listinfo/swift-users</a><br class=""></div></div></span></blockquote><img src="https://u2002410.ct.sendgrid.net/wf/open?upn=5xu02FVv-2BCbxTLHpBsC0RVeXVC5uCln3pUIIeLTlIi2vv7lmxdz8xtWgA9K7eWDNP6IaCUAc1QmE8Hmcs4lpHfRlG7NZIIPsLRipQml3uljEOrAdE3ZKDdlYJX1Pk0moXvKhxoABwxjOlJg6UVX5aV3MEBDq8Vt-2F9d45YfUZ-2Fyme9244iuzT9DQPeNNrpfUzu2wzSrpkhHX7GqeQ5ez-2FK9sI7exOUiiz3hPSQ-2BC9aqg-3D" alt="" width="1" height="1" border="0" style="font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; height: 1px !important; width: 1px !important; border-width: 0px !important; margin: 0px !important; padding: 0px !important;" class=""><span style="font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class=""><span class="Apple-converted-space">&nbsp;</span>_______________________________________________</span><br style="font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">swift-users mailing list</span><br style="font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:swift-users@swift.org" style="font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">swift-users@swift.org</a><br style="font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="https://lists.swift.org/mailman/listinfo/swift-users" style="font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">https://lists.swift.org/mailman/listinfo/swift-users</a></div></blockquote></div><br class=""></div></div></blockquote></div><br class=""></body></html>