<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="">I really don’t like the left-edge being in the zero column as it is completely inconsistent with the formatting of the rest of the language.</div><div class=""><br class=""></div><div class=""><div class=""><font face="Menlo" class="">class CommandLineTool {</font></div><div class=""><font face="Menlo" class=""> func showHelp() {</font></div><div class=""><font face="Menlo" class=""> let text =</font></div><div class=""><font face="Menlo" class=""> </font><span class="" style="font-family: Menlo;">"</span><span class="" style="font-family: Menlo;">"</span><span class="" style="font-family: Menlo;">"</span><font face="Menlo" class=""> </font></div><font face="Menlo" class=""> OVERVIEW: Swift compiler<br class=""><br class=""></font><span style="font-family: Menlo;" class=""> </span><font face="Menlo" class="">USAGE: swiftc [options] <inputs><br class=""><br class=""></font><span style="font-family: Menlo;" class=""> </span><font face="Menlo" class="">MODES:<br class=""></font><span style="font-family: Menlo;" class=""> </span><font face="Menlo" class=""> -dump-ast Parse and type-check input file(s) and dump AST(s)<br class=""></font><span style="font-family: Menlo;" class=""> </span><font face="Menlo" class=""> -dump-parse Parse input file(s) and dump AST(s)<br class=""></font><span style="font-family: Menlo;" class=""> </span><font face="Menlo" class=""> -dump-type-refinement-contexts<br class=""></font><span style="font-family: Menlo;" class=""> </span><font face="Menlo" class=""> Type-check input file(s) and dump type refinement contexts(s)<br class=""></font><span style="font-family: Menlo;" class=""> </span><font face="Menlo" class=""> -emit-assembly Emit assembly file(s) (-S)<br class=""></font><span style="font-family: Menlo;" class=""> </span><font face="Menlo" class=""> -emit-bc Emit LLVM BC file(s)<br class=""><br class=""></font><span style="font-family: Menlo;" class=""> ...</span><font face="Menlo" class=""><br class=""><br class=""></font><div class=""><span class="" style="font-family: Menlo;"> </span><span class="" style="font-family: Menlo;">""</span><span class="" style="font-family: Menlo;">"</span></div></div><div class=""><span class="" style="font-family: Menlo;"><br class=""></span></div><div class=""><span class="" style="font-family: Menlo;"> print(text)</span></div><div class=""><span class="" style="font-family: Menlo;"> }</span></div><div class=""><span class="" style="font-family: Menlo;">}</span></div><div class=""><br class=""></div><div class="">What you’re suggesting is that the above code should be this:</div><div class=""><br class=""></div><div class=""><div class=""><div class=""><font face="Menlo" class="">class CommandLineTool {</font></div><div class=""><font face="Menlo" class=""> func showHelp() {</font></div><div class=""><font face="Menlo" class=""> let text = </font><span class="" style="font-family: Menlo;">"</span><span class="" style="font-family: Menlo;">"</span><span class="" style="font-family: Menlo;">"</span><font face="Menlo" class=""> </font></div><font face="Menlo" class="">OVERVIEW: Swift compiler</font></div><div class=""><font face="Menlo" class=""><br class=""></font></div><div class=""><font face="Menlo" class="">USAGE: swiftc [options] <inputs></font></div><div class=""><font face="Menlo" class=""><br class=""></font></div><div class=""><font face="Menlo" class="">MODES:</font></div><div class=""><font face="Menlo" class=""> -dump-ast Parse and type-check input file(s) and dump AST(s)</font></div><div class=""><font face="Menlo" class=""> -dump-parse Parse input file(s) and dump AST(s)</font></div><div class=""><font face="Menlo" class=""> -dump-type-refinement-contexts</font></div><div class=""><font face="Menlo" class=""> Type-check input file(s) and dump type refinement contexts(s)</font></div><div class=""><font face="Menlo" class=""> -emit-assembly Emit assembly file(s) (-S)</font></div><div class=""><font face="Menlo" class=""> -emit-bc Emit LLVM BC file(s)</font></div><div class=""><font face="Menlo" class=""><br class=""></font></div><div class=""><font face="Menlo" class="">...</font></div><div class=""><font face="Menlo" class=""><br class=""></font></div><div class=""><font face="Menlo" class="">"""</font></div><div class=""><br class=""></div><div class=""><span class="" style="font-family: Menlo;"> print(text)</span></div><div class=""><span class="" style="font-family: Menlo;"> }</span></div><div class=""><span class="" style="font-family: Menlo;">}</span></div></div><div class=""><br class=""></div><div class="">That’s a compromise I’d rather not have to see in my code.</div><div class=""><br class=""></div><div class="">Another use case for this is for the content of test cases. Having many of these string literals within that file that are all left-edge aligned reduces the readability of the code.</div><div class=""><br class=""></div><div class="">-David</div><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 11, 2015, at 4:20 AM, Marc Knaup <<a href="mailto:marc@knaup.koeln" class="">marc@knaup.koeln</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">This example will break easily when tabs are used for indentation or when using refactoring tools to rename the variable:<div class=""><br class=""></div><div class=""><div style="font-size:12.8px" class=""><font face="monospace, monospace" class="">let text = """ </font></div><div style="font-size:12.8px" class=""><font face="monospace, monospace" class=""> This is ok.</font></div><div style="font-size:12.8px" class=""><font face="monospace, monospace" class=""> </font></div><div style="font-size:12.8px" class=""><font face="monospace, monospace" class=""> """</font></div></div></div></div></blockquote><div><br class=""></div><div>All that suggests is this form should be preferred:</div><div><br class=""></div><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><div class="" style="word-wrap: break-word;"><div class=""><div class=""><div class=""><font face="Menlo" class="">let text =</font></div><div class=""><font face="Menlo" class=""> </font><span class="" style="font-family: Menlo;">"</span><span class="" style="font-family: Menlo;">"</span><span class="" style="font-family: Menlo;">"</span><font face="Menlo" class=""> </font></div><div class=""><font face="Menlo" class=""> This is ok.</font></div><div class=""><span class="" style="font-family: Menlo;"> </span><span class="" style="font-family: Menlo;">""</span><span class="" style="font-family: Menlo;">"</span></div><div class=""><span class="" style="font-family: Menlo;"><br class=""></span></div></div></div></div></blockquote></div></div></div><br class=""></div><div>I write a lot of my text these days in markdown, so I’m pretty heavily influenced by the simplicity of that.</div><div><br class=""></div><div>-David</div><br class=""></body></html>