<div dir="ltr">What I suggest is to support both:<div><ul><li>standalone triple-quote will use indentation as in your first example</li><li>triple-quote which is not stand-alone will use indentation as in your second example</li></ul></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 11, 2015 at 5:52 PM, David Owens II <span dir="ltr">&lt;<a href="mailto:david@owensd.io" target="_blank">david@owensd.io</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>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><br></div><div><div><font face="Menlo">class CommandLineTool {</font></div><div><font face="Menlo">    func showHelp() {</font></div><div><font face="Menlo">        let text =</font></div><div><font face="Menlo">            </font><span style="font-family:Menlo">&quot;</span><span style="font-family:Menlo">&quot;</span><span style="font-family:Menlo">&quot;</span><font face="Menlo"> </font></div><font face="Menlo">            OVERVIEW: Swift compiler<br><br></font><span style="font-family:Menlo">            </span><font face="Menlo">USAGE: swiftc [options] &lt;inputs&gt;<br><br></font><span style="font-family:Menlo">            </span><font face="Menlo">MODES:<br></font><span style="font-family:Menlo">            </span><font face="Menlo">  -dump-ast        Parse and type-check input file(s) and dump AST(s)<br></font><span style="font-family:Menlo">            </span><font face="Menlo">  -dump-parse      Parse input file(s) and dump AST(s)<br></font><span style="font-family:Menlo">            </span><font face="Menlo">  -dump-type-refinement-contexts<br></font><span style="font-family:Menlo">            </span><font face="Menlo">                   Type-check input file(s) and dump type refinement contexts(s)<br></font><span style="font-family:Menlo">            </span><font face="Menlo">  -emit-assembly   Emit assembly file(s) (-S)<br></font><span style="font-family:Menlo">            </span><font face="Menlo">  -emit-bc         Emit LLVM BC file(s)<br><br></font><span style="font-family:Menlo">            ...</span><font face="Menlo"><br><br></font><div><span style="font-family:Menlo">            </span><span style="font-family:Menlo">&quot;&quot;</span><span style="font-family:Menlo">&quot;</span></div></div><div><span style="font-family:Menlo"><br></span></div><div><span style="font-family:Menlo">         print(text)</span></div><div><span style="font-family:Menlo">     }</span></div><div><span style="font-family:Menlo">}</span></div><div><br></div><div>What you’re suggesting is that the above code should be this:</div><div><br></div><div><div><div><font face="Menlo">class CommandLineTool {</font></div><div><font face="Menlo">    func showHelp() {</font></div><div><font face="Menlo">        let text = </font><span style="font-family:Menlo">&quot;</span><span style="font-family:Menlo">&quot;</span><span style="font-family:Menlo">&quot;</span><font face="Menlo"> </font></div><font face="Menlo">OVERVIEW: Swift compiler</font></div><div><font face="Menlo"><br></font></div><div><font face="Menlo">USAGE: swiftc [options] &lt;inputs&gt;</font></div><div><font face="Menlo"><br></font></div><div><font face="Menlo">MODES:</font></div><div><font face="Menlo">  -dump-ast        Parse and type-check input file(s) and dump AST(s)</font></div><div><font face="Menlo">  -dump-parse      Parse input file(s) and dump AST(s)</font></div><div><font face="Menlo">  -dump-type-refinement-contexts</font></div><div><font face="Menlo">                   Type-check input file(s) and dump type refinement contexts(s)</font></div><div><font face="Menlo">  -emit-assembly   Emit assembly file(s) (-S)</font></div><div><font face="Menlo">  -emit-bc         Emit LLVM BC file(s)</font></div><div><font face="Menlo"><br></font></div><div><font face="Menlo">...</font></div><div><font face="Menlo"><br></font></div><div><font face="Menlo">&quot;&quot;&quot;</font></div><div><br></div><div><span style="font-family:Menlo">         print(text)</span></div><div><span style="font-family:Menlo">     }</span></div><div><span style="font-family:Menlo">}</span></div></div><div><br></div><div>That’s a compromise I’d rather not have to see in my code.</div><div><br></div><div>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><br></div><div>-David</div><br><div><span class=""><blockquote type="cite"><div>On Dec 11, 2015, at 4:20 AM, Marc Knaup &lt;<a href="mailto:marc@knaup.koeln" target="_blank">marc@knaup.koeln</a>&gt; wrote:</div><br><div><div dir="ltr">This example will break easily when tabs are used for indentation or when using refactoring tools to rename the variable:<div><br></div><div><div style="font-size:12.8px"><font face="monospace, monospace">let text = &quot;&quot;&quot; </font></div><div style="font-size:12.8px"><font face="monospace, monospace">           This is ok.</font></div><div style="font-size:12.8px"><font face="monospace, monospace">    </font></div><div style="font-size:12.8px"><font face="monospace, monospace">           &quot;&quot;&quot;</font></div></div></div></div></blockquote><div><br></div></span><div>All that suggests is this form should be preferred:</div><span class=""><div><br></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 style="word-wrap:break-word"><div><div><div><font face="Menlo">let text =</font></div><div><font face="Menlo">    </font><span style="font-family:Menlo">&quot;</span><span style="font-family:Menlo">&quot;</span><span style="font-family:Menlo">&quot;</span><font face="Menlo"> </font></div><div><font face="Menlo">    This is ok.</font></div><div><span style="font-family:Menlo">    </span><span style="font-family:Menlo">&quot;&quot;</span><span style="font-family:Menlo">&quot;</span></div><div><span style="font-family:Menlo"><br></span></div></div></div></div></blockquote></div></div></div><br></span></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><span class="HOEnZb"><font color="#888888"><div><br></div><div>-David</div><br></font></span></div></blockquote></div><br></div>