<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="">&nbsp; &nbsp; func showHelp() {</font></div><div class=""><font face="Menlo" class="">&nbsp; &nbsp; &nbsp; &nbsp; let text =</font></div><div class=""><font face="Menlo" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</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="">&nbsp;</font></div><font face="Menlo" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OVERVIEW: Swift compiler<br class=""><br class=""></font><span style="font-family: Menlo;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><font face="Menlo" class="">USAGE: swiftc [options] &lt;inputs&gt;<br class=""><br class=""></font><span style="font-family: Menlo;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><font face="Menlo" class="">MODES:<br class=""></font><span style="font-family: Menlo;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><font face="Menlo" class="">&nbsp;&nbsp;-dump-ast&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;Parse and type-check input file(s) and dump AST(s)<br class=""></font><span style="font-family: Menlo;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><font face="Menlo" class="">&nbsp;&nbsp;-dump-parse&nbsp; &nbsp; &nbsp;&nbsp;Parse input file(s) and dump AST(s)<br class=""></font><span style="font-family: Menlo;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><font face="Menlo" class="">&nbsp;&nbsp;-dump-type-refinement-contexts<br class=""></font><span style="font-family: Menlo;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><font face="Menlo" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Type-check input file(s) and dump type refinement contexts(s)<br class=""></font><span style="font-family: Menlo;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><font face="Menlo" class="">&nbsp;&nbsp;-emit-assembly&nbsp;&nbsp;&nbsp;Emit assembly file(s) (-S)<br class=""></font><span style="font-family: Menlo;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><font face="Menlo" class="">&nbsp;&nbsp;-emit-bc&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;Emit LLVM BC file(s)<br class=""><br class=""></font><span style="font-family: Menlo;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ...</span><font face="Menlo" class=""><br class=""><br class=""></font><div class=""><span class="" style="font-family: Menlo;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</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;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;print(text)</span></div><div class=""><span class="" style="font-family: Menlo;">&nbsp; &nbsp; &nbsp;}</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="">&nbsp; &nbsp; func showHelp() {</font></div><div class=""><font face="Menlo" class="">&nbsp; &nbsp; &nbsp; &nbsp; let text =&nbsp;</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="">&nbsp;</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] &lt;inputs&gt;</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="">&nbsp; -dump-ast &nbsp; &nbsp; &nbsp; &nbsp;Parse and type-check input file(s) and dump AST(s)</font></div><div class=""><font face="Menlo" class="">&nbsp; -dump-parse &nbsp; &nbsp; &nbsp;Parse input file(s) and dump AST(s)</font></div><div class=""><font face="Menlo" class="">&nbsp; -dump-type-refinement-contexts</font></div><div class=""><font face="Menlo" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Type-check input file(s) and dump type refinement contexts(s)</font></div><div class=""><font face="Menlo" class="">&nbsp; -emit-assembly &nbsp; Emit assembly file(s) (-S)</font></div><div class=""><font face="Menlo" class="">&nbsp; -emit-bc &nbsp; &nbsp; &nbsp; &nbsp; 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;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;print(text)</span></div><div class=""><span class="" style="font-family: Menlo;">&nbsp; &nbsp; &nbsp;}</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 &lt;<a href="mailto:marc@knaup.koeln" class="">marc@knaup.koeln</a>&gt; 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 =&nbsp;"""&nbsp;</font></div><div style="font-size:12.8px" class=""><font face="monospace, monospace" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;This is ok.</font></div><div style="font-size:12.8px" class=""><font face="monospace, monospace" class="">&nbsp; &nbsp;&nbsp;</font></div><div style="font-size:12.8px" class=""><font face="monospace, monospace" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"""</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="">&nbsp; &nbsp;&nbsp;</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="">&nbsp;</font></div><div class=""><font face="Menlo" class="">&nbsp; &nbsp; This is ok.</font></div><div class=""><span class="" style="font-family: Menlo;">&nbsp; &nbsp;&nbsp;</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>