<div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">I&#39;m not in favour of multiline strings. I believe such strings should be stored in plain files and loaded as needed. It makes both the code and the string cleaner to read and maintain. I&#39;ve had experiences with many languages that offer that resource and I could see what your code can become in terms of maintainability when you have such feature on the language.</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">-1 from me.</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr">- Leonardo</div></div></div>
<br><div class="gmail_quote">On 12 May 2016 at 01:05, Eduardo Mourey Lopez Ne via swift-evolution <span dir="ltr">&lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</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>Something like this might work</div><div><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,132,0)"><span>//string ends on the first line that doesnt start with a &quot;</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="color:rgb(0,0,0)">foo( </span><font color="#b51a00"><span>@</span><span>&quot;&lt;?xml version=&quot;</span><span>1.0</span><span>&quot;?&gt;</span></font></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span><font color="#b51a00">       &quot;&lt;catalog&gt;</font></span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><font color="#b51a00"><span>       </span><span>&quot;   &lt;book id=&quot;</span><span>bk101</span><span>&quot; empty=&quot;</span><span>&quot;&gt;</span></font></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span><font color="#b51a00">       &quot;       &lt;author&gt;\(author)&lt;/author&gt;</font></span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span><font color="#b51a00">       &quot;       &lt;title&gt;XML Developer&#39;s Guide&lt;/title&gt;</font></span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span><font color="#b51a00">       &quot;       &lt;genre&gt;Computer&lt;/genre&gt;</font></span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span><font color="#b51a00">       &quot;       &lt;price&gt;44.95&lt;/price&gt;</font></span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span><font color="#b51a00">       &quot;       &lt;publish_date&gt;2000-10-01&lt;/publish_date&gt;</font></span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span><font color="#b51a00">       &quot;       &lt;description&gt;An in-depth look at creating applications with    XML.&lt;/description&gt;</font></span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span><font color="#b51a00">       &quot;   &lt;/book&gt;</font></span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span><font color="#b51a00">       &quot;&lt;/catalog&gt;\n</font></span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span>    )</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span><br></span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span><div style="margin:0px;line-height:normal;color:rgb(0,132,0)"><span>//additionally using a +&quot; could be used to indicate a line break</span></div><div style="margin:0px;line-height:normal"><span><div style="margin:0px;line-height:normal"><span style="color:rgb(0,0,0)">foo( </span><font color="#b51a00"><span>@</span><span>&quot;&lt;?xml version=&quot;</span><span>1.0</span><span>&quot;?&gt;</span></font></div><div style="margin:0px;line-height:normal"><span><font color="#b51a00">      +&quot;&lt;catalog&gt;</font></span></div><div style="margin:0px;line-height:normal"><font color="#b51a00"><span>      +</span><span>&quot;   &lt;book id=&quot;</span><span>bk101</span><span>&quot; empty=&quot;</span><span>&quot;&gt;</span></font></div><div style="margin:0px;line-height:normal"><span><font color="#b51a00">      +&quot;       &lt;author&gt;\(author)&lt;/author&gt;</font></span></div><div style="margin:0px;line-height:normal"><span><font color="#b51a00">      +&quot;       &lt;title&gt;XML Developer&#39;s Guide&lt;/title&gt;</font></span></div><div style="margin:0px;line-height:normal"><span><font color="#b51a00">      +&quot;       &lt;genre&gt;Computer&lt;/genre&gt;</font></span></div><div style="margin:0px;line-height:normal"><span><font color="#b51a00">      +&quot;       &lt;price&gt;44.95&lt;/price&gt;</font></span></div><div style="margin:0px;line-height:normal"><span><font color="#b51a00">      +&quot;       &lt;publish_date&gt;2000-10-01&lt;/publish_date&gt;</font></span></div><div style="margin:0px;line-height:normal"><span><font color="#b51a00">      +&quot;       &lt;description&gt;An in-depth look at creating applications with    XML.&lt;/description&gt;</font></span></div><div style="margin:0px;line-height:normal"><span><font color="#b51a00">      +&quot;   &lt;/book&gt;</font></span></div><div style="margin:0px;line-height:normal"><span><font color="#b51a00">      +&quot;&lt;/catalog&gt;\n</font></span></div><div style="color:rgb(0,0,0);margin:0px;line-height:normal"><span>    )</span></div><div style="color:rgb(0,0,0);margin:0px;line-height:normal"><span><br></span></div></span></div></span></div><div><div class="h5"><div><blockquote type="cite"><div>On May 11, 2016, at 9:48 PM, Ricardo Parada via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt; wrote:</div><br><div><div><br><br>On May 11, 2016, at 2:34 PM, Vladimir.S &lt;<a href="mailto:svabox@gmail.com" target="_blank">svabox@gmail.com</a>&gt; wrote:<br><br><blockquote type="cite"><blockquote type="cite">For example:<br><br><br>letsourceCode =@“NSString *firstName = @“John”;<br>                 &quot;NSString *lastName = @“Doe”;<br>                 “NSString *fullName = [NSString stringWithFormat: @“%@<br>%@“, firstName, lastName];&quot;@<br><br>The one that would be a bit of a problem is the closing delimiter,<br></blockquote><br>Yes.. this is why I asked about `&quot;@` - closing delimiter<br>so.. what is the solution in your case ?<br></blockquote><br>Hi Vladimir,<br><br>I don&#39;t really have a solution. Perhaps escaping the closing delimiter like this \&quot;@<br><br>It is not pretty but I can&#39;t think of anything else. I imagine the other alternatives, i.e.   the triple quote `&quot;&quot;&quot;` and the quote plus underscore `&quot;_ `  have the same problem. <br><br>If we make the continuation quote required then we don&#39;t need a closing delimiter. That would solve the problem. But I&#39;ve seen several people say they don&#39;t like the continuation quote because they want to be able to paste text and not have to worry much about formatting it afterwards. <br>_______________________________________________<br>swift-evolution mailing list<br><a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a><br><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br></div></div></blockquote></div><br></div></div></div><br>_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
<br></blockquote></div><br></div>