<html><body><div>+1</div><div><br data-mce-bogus="1"></div><div>I also hate the K&R brace style. Really want the ability to customize the formatting of Swift code.</div><div><br data-mce-bogus="1"></div><div><meta charset="utf-8"><blockquote type="cite" class="quoted-plain-text" style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;" data-mce-style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;">On 16 May 2016, at 22:42, Daniel Martín via swift-evolution <swift-evolution@swift.org> wrote:</blockquote><blockquote type="cite" class="quoted-plain-text" style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;" data-mce-style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"><br></blockquote><blockquote type="cite" class="quoted-plain-text" style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;" data-mce-style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;">As Swift is getting traction in more and more platforms outside of Apple, we can expect that many coding styles different from what Apple imposes with SourceKit's indenting rules will emerge. According to<a href="https://bugs.swift.org/browse/SR-146" data-mce-href="https://bugs.swift.org/browse/SR-146">https://bugs.swift.org/browse/SR-146</a>, we now have decoupled indenting logic from SourceKit into its own library, and a "swift-format" tool is in the making.</blockquote><blockquote type="cite" class="quoted-plain-text" style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;" data-mce-style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"><br></blockquote><blockquote type="cite" class="quoted-plain-text" style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;" data-mce-style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;">I am working on adding support for different coding styles to libIDE. For example, with my changes you could decide how a case label should be indented with respect to its parent switch context, among other things. The current, hard coded indenting decisions in libIDE could be named the "Apple" style, just like Clang supports Google, LLVM, Mozilla, coding styles for C++. Also, this is something that can be supported by external tools like Xcode quite easily.</blockquote><blockquote type="cite" class="quoted-plain-text" style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;" data-mce-style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"><br></blockquote><blockquote type="cite" class="quoted-plain-text" style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;" data-mce-style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;">Do you think this is a good feature to have?</blockquote><blockquote type="cite" class="quoted-plain-text" style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;" data-mce-style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"><br></blockquote><blockquote type="cite" class="quoted-plain-text" style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;" data-mce-style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;">--</blockquote><blockquote type="cite" class="quoted-plain-text" style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;" data-mce-style="border-left-width: 2px; border-left-style: solid; border-left-color: #003399; margin: 0px; padding: 0px 12px; font-size: 15px; color: #003399; line-height: 22.5px; white-space: normal; font-family: SFNSText, 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;">Daniel Martín</blockquote></div><div><span><br data-mce-bogus="1"></span></div><div><span>Vince Coetzee </span></div></body></html>