<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>let whyOwhy = _"\</div><div id="AppleMailSignature"><span style="background-color: rgba(255, 255, 255, 0);">&nbsp; &nbsp; !! &nbsp; &nbsp;Can't understand what improvements it truly delivers&nbsp;</span></div><div id="AppleMailSignature"><span style="background-color: rgba(255, 255, 255, 0);">&nbsp; &nbsp; !! &nbsp; &nbsp; &nbsp; &nbsp;It basically removes a handful of characters</span></div><div id="AppleMailSignature"><span style="background-color: rgba(255, 255, 255, 0);">&nbsp; &nbsp; !! &nbsp; &nbsp;It works today</span></div><div id="AppleMailSignature"><span style="background-color: rgba(255, 255, 255, 0);">&nbsp; &nbsp; !! &nbsp; &nbsp; &nbsp; &nbsp;But I don't see it as a likable foundations for adding in future enhancements</span></div><div id="AppleMailSignature"><span style="background-color: rgba(255, 255, 255, 0);">&nbsp; &nbsp; !!\</span></div><div id="AppleMailSignature"><span style="background-color: rgba(255, 255, 255, 0);">&nbsp; &nbsp; !! &nbsp; &nbsp;I don't envy the people who will have to support it outside of xcode</span></div><div id="AppleMailSignature">&nbsp; &nbsp; !! &nbsp; &nbsp; &nbsp; &nbsp;Or even in xcode (considering how it currently struggles with indents/formatting</div><div id="AppleMailSignature">&nbsp; &nbsp; !! &nbsp; &nbsp;As for elegance, beauty is in the eye of the beholder, they say.</div><div id="AppleMailSignature">&nbsp; &nbsp; "_</div><div id="AppleMailSignature">&nbsp;var json = _"[json]\</div><div id="AppleMailSignature">!!{</div><div id="AppleMailSignature">!! &nbsp;"file" : "\(wishIhadPlaceholders)_000.md"</div><div id="AppleMailSignature">!! &nbsp;"desc" : "and why are all examples in xml, i thought it died a while ago ;-)"</div><div id="AppleMailSignature">!! &nbsp;"rational" : [</div><div id="AppleMailSignature">!! &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"Here we go again"</div><div id="AppleMailSignature">!! &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"How will xcode help make these workable"</div><div id="AppleMailSignature">!! &nbsp; &nbsp; &nbsp; ]</div><div id="AppleMailSignature">!!}</div><div id="AppleMailSignature">"_</div><div id="AppleMailSignature"><br></div><div id="AppleMailSignature">&nbsp;[<b>_"</b>] &nbsp;--&gt; start string</div><div id="AppleMailSignature">&nbsp;[<b>_"\</b>] --&gt; start line + ignore spaces until eol&nbsp;</div><div id="AppleMailSignature">&nbsp;[<b>!!\</b>] &nbsp;--&gt; ignore everything until eol... basically the gap does not exits</div><div id="AppleMailSignature">&nbsp;[<b>"_</b>] &nbsp;--&gt; terminate string</div><div id="AppleMailSignature">&nbsp;[<b>_"[TYPEID]\</b>] --&gt; start string knowing that it a verifyer or a formatter (or a chain of) understanding TYPEID can syntax check or format or or or</div><div id="AppleMailSignature"><br><div>Regards</div>(From<span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.294118);">&nbsp;mobile)</span></div><div><br>On Apr 29, 2016, at 4:20 PM, Erica Sadun via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><span></span><br><blockquote type="cite"><span>On Apr 28, 2016, at 4:52 PM, Brent Royal-Gordon via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>&gt; wrote:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><blockquote type="cite"><span>Did you ever really use multiline string literals before?</span><br></blockquote></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Yes. I used Perl in the CGI script era. Believe me, I have used every quoting syntax it supports extensively, including `'` strings, `"` strings, `q` strings, `qq` strings, and heredocs. This proposal is educated by knowledge of their foibles.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>As outlined in the "Future directions for string literals in general" section, I believe alternate delimiters (so you can embed quotes) are a separate feature and should be handled in a separate proposal. Once both features are available, they can be combined. For instance, using the `_"foo"_` syntax I sketch there for alternate delimiters, you could say:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span> &nbsp; &nbsp;let xml = _"&lt;?xml version="1.0"?&gt;</span><br></blockquote><blockquote type="cite"><span> &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"&lt;catalog&gt;</span><br></blockquote><blockquote type="cite"><span> &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" &lt;book id="bk101" empty=""&gt;</span><br></blockquote><blockquote type="cite"><span> &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" &nbsp;&nbsp;&nbsp;&nbsp;&lt;author&gt;\(author)&lt;/author&gt;</span><br></blockquote><blockquote type="cite"><span> &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" &lt;/book&gt;</span><br></blockquote><blockquote type="cite"><span> &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"&lt;/catalog&gt;"_</span><br></blockquote><span></span><br><span>Other than the underscores (I'm not sold on them but I could live with them), this is my favorite approach:</span><br><span></span><br><span>* It supports indented left-hand alignment, which is an important to me for readability</span><br><span>* It avoids painful `\n"+` RHS constructions</span><br><span>* It's easy to scan and understand</span><br><span>* It's simple and harmonious</span><br><span></span><br><span>-- E</span><br><span></span><br><span>_______________________________________________</span><br><span>swift-evolution mailing list</span><br><span><a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a></span><br><span><a href="https://lists.swift.org/mailman/listinfo/swift-evolution">https://lists.swift.org/mailman/listinfo/swift-evolution</a></span><br></div></blockquote></body></html>