<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);"> !! Can't understand what improvements it truly delivers </span></div><div id="AppleMailSignature"><span style="background-color: rgba(255, 255, 255, 0);"> !! It basically removes a handful of characters</span></div><div id="AppleMailSignature"><span style="background-color: rgba(255, 255, 255, 0);"> !! It works today</span></div><div id="AppleMailSignature"><span style="background-color: rgba(255, 255, 255, 0);"> !! 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);"> !!\</span></div><div id="AppleMailSignature"><span style="background-color: rgba(255, 255, 255, 0);"> !! I don't envy the people who will have to support it outside of xcode</span></div><div id="AppleMailSignature"> !! Or even in xcode (considering how it currently struggles with indents/formatting</div><div id="AppleMailSignature"> !! As for elegance, beauty is in the eye of the beholder, they say.</div><div id="AppleMailSignature"> "_</div><div id="AppleMailSignature"> var json = _"[json]\</div><div id="AppleMailSignature">!!{</div><div id="AppleMailSignature">!! "file" : "\(wishIhadPlaceholders)_000.md"</div><div id="AppleMailSignature">!! "desc" : "and why are all examples in xml, i thought it died a while ago ;-)"</div><div id="AppleMailSignature">!! "rational" : [</div><div id="AppleMailSignature">!! "Here we go again"</div><div id="AppleMailSignature">!! "How will xcode help make these workable"</div><div id="AppleMailSignature">!! ]</div><div id="AppleMailSignature">!!}</div><div id="AppleMailSignature">"_</div><div id="AppleMailSignature"><br></div><div id="AppleMailSignature"> [<b>_"</b>] --> start string</div><div id="AppleMailSignature"> [<b>_"\</b>] --> start line + ignore spaces until eol </div><div id="AppleMailSignature"> [<b>!!\</b>] --> ignore everything until eol... basically the gap does not exits</div><div id="AppleMailSignature"> [<b>"_</b>] --> terminate string</div><div id="AppleMailSignature"> [<b>_"[TYPEID]\</b>] --> 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);"> mobile)</span></div><div><br>On Apr 29, 2016, at 4:20 PM, Erica Sadun via swift-evolution <<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>> 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 <<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>> 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> let xml = _"<?xml version="1.0"?></span><br></blockquote><blockquote type="cite"><span> "<catalog></span><br></blockquote><blockquote type="cite"><span> " <book id="bk101" empty=""></span><br></blockquote><blockquote type="cite"><span> " <author>\(author)</author></span><br></blockquote><blockquote type="cite"><span> " </book></span><br></blockquote><blockquote type="cite"><span> "</catalog>"_</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>