I feel like a broken record: Of the three proposed components of the proposed solution, two were amply considered by the community and the core team in SE-0168. The decision has already been made _not_ to implement these ideas at this time.<br><br>Significant defects discovered after the fact during implementation or new insights after extensive usage can prompt revisiting the decision, but that is not the case here: implementation did not require further clarification and the feature has only just landed on master. We simply cannot revisit topics willy-nilly. The process simply cannot work that way: few have the time and energy to offer their fullest consideration the first time round, and no one would be willing to do that if it means that the same topic will be revisited one month later.<br><div class="gmail_quote"><div dir="ltr">On Fri, May 12, 2017 at 15:51 David Hart via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi swift-evolution,<div><br></div><div>Adrian Zubarev and I have discussed several issues with string literals still unresolved after the multi-line string literals proposals and we believe that they are important enough to address for Swift 4. Here is the pitch for our proposal.</div><div><br></div><div>Please let us know what you think:</div><div><br></div><div><a href="https://github.com/hartbit/swift-evolution/blob/literal-string-improvements/proposals/XXXX-improve-string-literals.md" target="_blank">https://github.com/hartbit/swift-evolution/blob/literal-string-improvements/proposals/XXXX-improve-string-literals.md</a></div><div><br></div><div><h1 style="box-sizing:border-box;margin-right:0px;margin-bottom:16px;margin-left:0px;line-height:1.25;padding-bottom:0.3em;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(234,236,239);color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;background-color:rgb(255,255,255);margin-top:0px!important">Improve String Literals</h1><ul style="box-sizing:border-box;padding-left:2em;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)"><li style="box-sizing:border-box">Proposal: <a href="https://github.com/hartbit/swift-evolution/blob/literal-string-improvements/proposals/XXXX-improve-string-literals.md" style="box-sizing:border-box;background-color:transparent;color:rgb(3,102,214);text-decoration:none" target="_blank">SE-XXXX</a></li><li style="box-sizing:border-box;margin-top:0.25em">Authors: <a href="https://github.com/hartbit" style="box-sizing:border-box;background-color:transparent;color:rgb(3,102,214);text-decoration:none" target="_blank">David Hart</a>, <a href="https://github.com/devandartist" style="box-sizing:border-box;background-color:transparent;color:rgb(3,102,214);text-decoration:none" target="_blank">Adrian Zubarev</a></li><li style="box-sizing:border-box;margin-top:0.25em">Review Manager: TBD</li><li style="box-sizing:border-box;margin-top:0.25em">Status: TBD</li></ul><h2 style="box-sizing:border-box;margin-top:24px;margin-bottom:16px;line-height:1.25;padding-bottom:0.3em;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(234,236,239);color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;background-color:rgb(255,255,255)"><a id="m_-8182216364070455622user-content-introduction" class="m_-8182216364070455622anchor" href="https://github.com/hartbit/swift-evolution/blob/literal-string-improvements/proposals/XXXX-improve-string-literals.md#introduction" style="box-sizing:border-box;background-color:transparent;color:rgb(3,102,214);text-decoration:none;float:left;padding-right:4px;line-height:1" target="_blank"><u></u><u></u><u></u><u></u></a>Introduction</h2><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)">This proposal builds on top the new features of <a href="https://github.com/hartbit/swift-evolution/blob/literal-string-improvements/proposals/0168-multi-line-string-literals.md" style="box-sizing:border-box;background-color:transparent;color:rgb(3,102,214);text-decoration:none" target="_blank">SE-0168 Multi-Line String Literals</a> by widening the use-cases for unescaped double-quotes and resolving certain issues around long lines in single and multi-line string literals.</p><h2 style="box-sizing:border-box;margin-top:24px;margin-bottom:16px;line-height:1.25;padding-bottom:0.3em;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(234,236,239);color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;background-color:rgb(255,255,255)"><a id="m_-8182216364070455622user-content-motivation" class="m_-8182216364070455622anchor" href="https://github.com/hartbit/swift-evolution/blob/literal-string-improvements/proposals/XXXX-improve-string-literals.md#motivation" style="box-sizing:border-box;background-color:transparent;color:rgb(3,102,214);text-decoration:none;float:left;padding-right:4px;line-height:1" target="_blank"><u></u><u></u><u></u><u></u></a>Motivation</h2><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)">In Swift 3, String literals have three pain points:</p><ul style="box-sizing:border-box;padding-left:2em;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)"><li style="box-sizing:border-box">Strings containing double-quotes</li><li style="box-sizing:border-box;margin-top:0.25em">Multi-line strings</li><li style="box-sizing:border-box;margin-top:0.25em">Long single-line strings</li></ul><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)">Proposal <a href="https://github.com/hartbit/swift-evolution/blob/literal-string-improvements/proposals/0168-multi-line-string-literals.md" style="box-sizing:border-box;background-color:transparent;color:rgb(3,102,214);text-decoration:none" target="_blank">SE-0168</a> fixed the two first problems with the same syntax. Unfortunately, while an improvement on Swift 3, several problems remain:</p><ul style="box-sizing:border-box;padding-left:2em;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)"><li style="box-sizing:border-box">Long single-line strings still require the less than ideal concatenation syntax:</li></ul><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)">Some project styles (like the Standard Library) mandate a maximum line length, requiring long single-line strings to be hard-wrapped. This still requires odd solutions:</p><div class="m_-8182216364070455622highlight m_-8182216364070455622highlight-source-swift" style="box-sizing:border-box;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)"><pre style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:13.600000381469727px;margin-top:0px;margin-bottom:0px;line-height:1.45;word-wrap:normal;padding:16px;overflow:auto;background-color:rgb(246,248,250);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-break:normal"><span class="m_-8182216364070455622pl-c1" style="box-sizing:border-box;color:rgb(0,134,179)">assert</span>(condition, <span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span>This is a long assertion message that requires <span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span></span> <span class="m_-8182216364070455622pl-k" style="box-sizing:border-box;color:rgb(167,29,93)">+</span>
    <span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span>string concatenation when the project style enforces maximum line <span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span></span> <span class="m_-8182216364070455622pl-k" style="box-sizing:border-box;color:rgb(167,29,93)">+</span>
    <span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span>lengths<span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span></span>)</pre></div><ul style="box-sizing:border-box;padding-left:2em;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)"><li style="box-sizing:border-box">Long lines in a multi-line strings can&#39;t be manually wrapped:</li></ul><div class="m_-8182216364070455622highlight m_-8182216364070455622highlight-source-swift" style="box-sizing:border-box;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)"><pre style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:13.600000381469727px;margin-top:0px;margin-bottom:0px;line-height:1.45;word-wrap:normal;padding:16px;overflow:auto;background-color:rgb(246,248,250);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-break:normal"><span class="m_-8182216364070455622pl-k" style="box-sizing:border-box;color:rgb(167,29,93)">let</span> markdown <span class="m_-8182216364070455622pl-k" style="box-sizing:border-box;color:rgb(167,29,93)">=</span> <span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span>
<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)">    # Title<span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span>
<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span>
<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)">    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer elementum commodo sem, a congue orci porta sit amet. Duis facilisis, est et vehicula congue, turpis dui ultricies nunc, ut elementum quam elit nec felis. Integer aliquam id risus nec laoreet. Vivamus vitae odio sit amet quam iaculis fermentum nec sed neque.<span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span>
<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span>
<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)">    ## Subtitle<span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span>
<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span>
<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)">    Cras et nibh velit. Praesent eleifend sagittis quam, pellentesque lobortis lectus commodo vel. Vivamus suscipit, nulla quis blandit ullamcorper, velit neque euismod nibh, nec blandit mi diam molestie ex. Cras porttitor, est sed pharetra interdum, ipsum mauris viverra quam, sit amet eleifend purus elit sit amet odio.<span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span>
<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)">    <span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span></span></pre></div><ul style="box-sizing:border-box;padding-left:2em;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)"><li style="box-sizing:border-box">Short strings containing double-quotes have to use the multi-line syntax to benefit from unescaped double-quotes:</li></ul><div class="m_-8182216364070455622highlight m_-8182216364070455622highlight-source-swift" style="box-sizing:border-box;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)"><pre style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:13.600000381469727px;margin-top:0px;margin-bottom:0px;line-height:1.45;word-wrap:normal;padding:16px;overflow:auto;background-color:rgb(246,248,250);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-break:normal"><span class="m_-8182216364070455622pl-c1" style="box-sizing:border-box;color:rgb(0,134,179)">print</span>(<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span>
<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)">    { <span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span></span>success<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span>: false, <span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span></span>error<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span>: <span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span></span>Wrong parameter<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span> }<span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span>
<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)">    <span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span></span>)</pre></div><h2 style="box-sizing:border-box;margin-top:24px;margin-bottom:16px;line-height:1.25;padding-bottom:0.3em;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(234,236,239);color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;background-color:rgb(255,255,255)"><a id="m_-8182216364070455622user-content-proposed-solution" class="m_-8182216364070455622anchor" href="https://github.com/hartbit/swift-evolution/blob/literal-string-improvements/proposals/XXXX-improve-string-literals.md#proposed-solution" style="box-sizing:border-box;background-color:transparent;color:rgb(3,102,214);text-decoration:none;float:left;padding-right:4px;line-height:1" target="_blank"><u></u><u></u><u></u><u></u></a>Proposed solution</h2><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)">By implementing multi-line string literals and support for unescaped double-quotes with the same syntax, <a href="https://github.com/hartbit/swift-evolution/blob/literal-string-improvements/proposals/0168-multi-line-string-literals.md" style="box-sizing:border-box;background-color:transparent;color:rgb(3,102,214);text-decoration:none" target="_blank">SE-0168</a> has made those features unusable on their own. By dissociating them and supporting two extra syntax features, we can solve all the above problems:</p><h3 style="box-sizing:border-box;margin-top:24px;margin-bottom:16px;font-size:1.25em;line-height:1.25;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;background-color:rgb(255,255,255)"><a id="m_-8182216364070455622user-content-divorce-the--delimiter-from-the-multi-line-syntax-and-have-them-only-support-unescaped-double-quotes" class="m_-8182216364070455622anchor" href="https://github.com/hartbit/swift-evolution/blob/literal-string-improvements/proposals/XXXX-improve-string-literals.md#divorce-the--delimiter-from-the-multi-line-syntax-and-have-them-only-support-unescaped-double-quotes" style="box-sizing:border-box;background-color:transparent;color:rgb(3,102,214);text-decoration:none;float:left;padding-right:4px;line-height:1" target="_blank"><u></u><u></u><u></u><u></u></a>Divorce the <code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:inherit;padding:0.2em 0px;margin:0px;background-color:rgba(27,31,35,0.0470588);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px">&quot;&quot;&quot;</code> delimiter from the multi-line syntax and have them only support unescaped double-quotes</h3><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)">The change allows us to express short strings containing double-quotes without resorting to the multi-line syntax:</p><div class="m_-8182216364070455622highlight m_-8182216364070455622highlight-source-swift" style="box-sizing:border-box;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)"><pre style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:13.600000381469727px;margin-top:0px;margin-bottom:0px;line-height:1.45;word-wrap:normal;padding:16px;overflow:auto;background-color:rgb(246,248,250);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-break:normal"><span class="m_-8182216364070455622pl-c1" style="box-sizing:border-box;color:rgb(0,134,179)">print</span>(<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span>{ <span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span></span>success<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span>: false, <span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span></span>error<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span>: <span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span></span>Wrong parameter<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span> }<span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span></span>)</pre></div><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)">As a consequence, multi-line strings are now only defined by a newline following the leading delimiter and the whitespace preceeding the trailing delimiter. They gain support for <code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:13.600000381469727px;padding:0.2em 0px;margin:0px;background-color:rgba(27,31,35,0.0470588);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px">&quot;</code> delimiters, which has the nice advantage of saving a few characters in multi-line strings which are known to never contain double-quotes:</p><div class="m_-8182216364070455622highlight m_-8182216364070455622highlight-source-swift" style="box-sizing:border-box;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)"><pre style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:13.600000381469727px;margin-top:0px;margin-bottom:0px;line-height:1.45;word-wrap:normal;padding:16px;overflow:auto;background-color:rgb(246,248,250);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-break:normal"><span class="m_-8182216364070455622pl-c1" style="box-sizing:border-box;color:rgb(0,134,179)">print</span>(<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span>
<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)">    Triple <span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span></span> are still valid delimiters
    <span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span>)<span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span>
<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span>
<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)">query(<span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span></span>
    SELECT &#39;name&#39;
    FROM &#39;people&#39;
    WHERE age <span class="m_-8182216364070455622pl-k" style="box-sizing:border-box;color:rgb(167,29,93)">&gt;</span> <span class="m_-8182216364070455622pl-c1" style="box-sizing:border-box;color:rgb(0,134,179)">20</span>
    <span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span>)<span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span></pre></div><h3 style="box-sizing:border-box;margin-top:24px;margin-bottom:16px;font-size:1.25em;line-height:1.25;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;background-color:rgb(255,255,255)"><a id="m_-8182216364070455622user-content-support-escaping-newlines-in-multi-line-strings-with-a-trailing-" class="m_-8182216364070455622anchor" href="https://github.com/hartbit/swift-evolution/blob/literal-string-improvements/proposals/XXXX-improve-string-literals.md#support-escaping-newlines-in-multi-line-strings-with-a-trailing-" style="box-sizing:border-box;background-color:transparent;color:rgb(3,102,214);text-decoration:none;float:left;padding-right:4px;line-height:1" target="_blank"><u></u><u></u><u></u><u></u></a>Support escaping newlines in multi-line strings with a trailing <code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:inherit;padding:0.2em 0px;margin:0px;background-color:rgba(27,31,35,0.0470588);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px">\</code></h3><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)">This change allows hard-wrapping long lines in multi-line strings. They also have the added benefit of making trailing white-space at the end of source-code lines explicit.</p><div class="m_-8182216364070455622highlight m_-8182216364070455622highlight-source-swift" style="box-sizing:border-box;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)"><pre style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:13.600000381469727px;margin-top:0px;margin-bottom:0px;line-height:1.45;word-wrap:normal;padding:16px;overflow:auto;background-color:rgb(246,248,250);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-break:normal"><span class="m_-8182216364070455622pl-k" style="box-sizing:border-box;color:rgb(167,29,93)">let</span> markdown <span class="m_-8182216364070455622pl-k" style="box-sizing:border-box;color:rgb(167,29,93)">=</span> <span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span>
<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)">    # Title<span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span>
<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span>
<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)">    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer \<span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span>
<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)">    elementum commodo sem, a congue orci porta sit amet. Duis facilisis, est \<span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span>
<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)">    et vehicula congue, turpis dui ultricies nunc, ut elementum quam elit nec \<span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span>
<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)">    felis. Integer aliquam id risus nec laoreet. Vivamus vitae odio sit amet \<span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span>
<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)">    quam iaculis fermentum nec sed neque.<span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span>
<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span>
<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)">    ## Subtitle<span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span>
<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span>
<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)">    Cras et nibh velit. Praesent eleifend sagittis quam, pellentesque \<span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span>
<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)">    lobortis lectus commodo vel. Vivamus suscipit, nulla quis blandit \<span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span>
<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)">    ullamcorper, velit neque euismod nibh, nec blandit mi diam molestie \<span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span>
<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)">    ex. Cras porttitor, est sed pharetra interdum, ipsum mauris viverra \<span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span>
<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)">    quam, sit amet eleifend purus elit sit amet odio.<span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span>
<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)">    <span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span></span></pre></div><h3 style="box-sizing:border-box;margin-top:24px;margin-bottom:16px;font-size:1.25em;line-height:1.25;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;background-color:rgb(255,255,255)"><a id="m_-8182216364070455622user-content-adopt-the-cobjective-c-syntax-that-concatenates-single-line-strings" class="m_-8182216364070455622anchor" href="https://github.com/hartbit/swift-evolution/blob/literal-string-improvements/proposals/XXXX-improve-string-literals.md#adopt-the-cobjective-c-syntax-that-concatenates-single-line-strings" style="box-sizing:border-box;background-color:transparent;color:rgb(3,102,214);text-decoration:none;float:left;padding-right:4px;line-height:1" target="_blank"><u></u><u></u><u></u><u></u></a>Adopt the C/Objective-C syntax that concatenates single-line strings</h3><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)">This change will be familiar to C developers and provides a cleaner and more performant solution for long single-line strings:</p><div class="m_-8182216364070455622highlight m_-8182216364070455622highlight-source-swift" style="box-sizing:border-box;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)"><pre style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:13.600000381469727px;margin-top:0px;margin-bottom:0px;line-height:1.45;word-wrap:normal;padding:16px;overflow:auto;background-color:rgb(246,248,250);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-break:normal"><span class="m_-8182216364070455622pl-c1" style="box-sizing:border-box;color:rgb(0,134,179)">assert</span>(condition, <span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span>This is a long assertion message that flows <span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span></span>
    <span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span>from one line to the next without requiring the concatenation <span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span></span>
    <span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span>operator<span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span></span>)

<span class="m_-8182216364070455622pl-c1" style="box-sizing:border-box;color:rgb(0,134,179)">assert</span>(condition, <span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span>This is another <span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span></span>single<span class="m_-8182216364070455622pl-k" style="box-sizing:border-box;color:rgb(167,29,93)">-</span>line<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span> message that <span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span></span>
    <span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span>supports up to two double-quotes (<span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span></span> and <span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span></span>) without any <span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span>
<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)">    <span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span></span>escaping<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span>)<span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span></pre></div><h2 style="box-sizing:border-box;margin-top:24px;margin-bottom:16px;line-height:1.25;padding-bottom:0.3em;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(234,236,239);color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;background-color:rgb(255,255,255)"><a id="m_-8182216364070455622user-content-source-compatibility" class="m_-8182216364070455622anchor" href="https://github.com/hartbit/swift-evolution/blob/literal-string-improvements/proposals/XXXX-improve-string-literals.md#source-compatibility" style="box-sizing:border-box;background-color:transparent;color:rgb(3,102,214);text-decoration:none;float:left;padding-right:4px;line-height:1" target="_blank"><u></u><u></u><u></u><u></u></a>Source compatibility</h2><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)">This feature is purely additive; it has no effect on source compatibility.</p><h2 style="box-sizing:border-box;margin-top:24px;margin-bottom:16px;line-height:1.25;padding-bottom:0.3em;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(234,236,239);color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;background-color:rgb(255,255,255)"><a id="m_-8182216364070455622user-content-effect-on-abi-stability" class="m_-8182216364070455622anchor" href="https://github.com/hartbit/swift-evolution/blob/literal-string-improvements/proposals/XXXX-improve-string-literals.md#effect-on-abi-stability" style="box-sizing:border-box;background-color:transparent;color:rgb(3,102,214);text-decoration:none;float:left;padding-right:4px;line-height:1" target="_blank"><u></u><u></u><u></u><u></u></a>Effect on ABI stability</h2><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)">This feature is purely additive; it has no effect on ABI stability.</p><h2 style="box-sizing:border-box;margin-top:24px;margin-bottom:16px;line-height:1.25;padding-bottom:0.3em;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(234,236,239);color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;background-color:rgb(255,255,255)"><a id="m_-8182216364070455622user-content-effect-on-api-resilience" class="m_-8182216364070455622anchor" href="https://github.com/hartbit/swift-evolution/blob/literal-string-improvements/proposals/XXXX-improve-string-literals.md#effect-on-api-resilience" style="box-sizing:border-box;background-color:transparent;color:rgb(3,102,214);text-decoration:none;float:left;padding-right:4px;line-height:1" target="_blank"><u></u><u></u><u></u><u></u></a>Effect on API resilience</h2><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)">This feature is purely additive; it has no effect on API resilience.</p><h2 style="box-sizing:border-box;margin-top:24px;margin-bottom:16px;line-height:1.25;padding-bottom:0.3em;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(234,236,239);color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;background-color:rgb(255,255,255)"><a id="m_-8182216364070455622user-content-alternatives-considered" class="m_-8182216364070455622anchor" href="https://github.com/hartbit/swift-evolution/blob/literal-string-improvements/proposals/XXXX-improve-string-literals.md#alternatives-considered" style="box-sizing:border-box;background-color:transparent;color:rgb(3,102,214);text-decoration:none;float:left;padding-right:4px;line-height:1" target="_blank"><u></u><u></u><u></u><u></u></a>Alternatives considered</h2><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)">A different syntax for supporting long single-line strings was discussed where ending delimiters were replaced with the <code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:13.600000381469727px;padding:0.2em 0px;margin:0px;background-color:rgba(27,31,35,0.0470588);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px">\</code>escaping character, mirroring their use in multi-line strings:</p><div class="m_-8182216364070455622highlight m_-8182216364070455622highlight-source-swift" style="box-sizing:border-box;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)"><pre style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:13.600000381469727px;margin-top:0px;margin-bottom:0px;line-height:1.45;word-wrap:normal;padding:16px;overflow:auto;background-color:rgb(246,248,250);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-break:normal"><span class="m_-8182216364070455622pl-c1" style="box-sizing:border-box;color:rgb(0,134,179)">assert</span>(condition, <span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span>This is a long assertion message that flows \<span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span>
<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)">    <span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span></span>from one line to the next without requiring the concatenation \
    <span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span>operator<span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span></span>)

<span class="m_-8182216364070455622pl-c1" style="box-sizing:border-box;color:rgb(0,134,179)">assert</span>(condition, <span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span>This is another <span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span></span>single<span class="m_-8182216364070455622pl-k" style="box-sizing:border-box;color:rgb(167,29,93)">-</span>line<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span> message that \<span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span>
<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)">    <span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span></span>supports up to two double<span class="m_-8182216364070455622pl-k" style="box-sizing:border-box;color:rgb(167,29,93)">-</span><span class="m_-8182216364070455622pl-c1" style="box-sizing:border-box;color:rgb(0,134,179)">quotes</span> (<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span> and <span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span>) without any \<span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span>
<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)">    <span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span></span>escaping<span class="m_-8182216364070455622pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span><span class="m_-8182216364070455622pl-pds" style="box-sizing:border-box">&quot;</span>)<span class="m_-8182216364070455622pl-ii" style="box-sizing:border-box;color:rgb(248,248,248);background-color:rgb(181,42,29)"></span></span></pre></div><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)">That syntax saved two characters per line in strings with <code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:13.600000381469727px;padding:0.2em 0px;margin:0px;background-color:rgba(27,31,35,0.0470588);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px">&quot;&quot;&quot;</code> delimiters but had several disadvantages:</p><ul style="box-sizing:border-box;padding-left:2em;margin-top:0px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255);margin-bottom:0px!important"><li style="box-sizing:border-box">It loses the familiarity with C syntax</li><li style="box-sizing:border-box;margin-top:0.25em">It introduces an asymmetry between the last line and those above</li><li style="box-sizing:border-box;margin-top:0.25em">It does not do any actual escaping, introducing developer ambiguity with their use in multi-line literals</li></ul><div><br></div></div></div>_______________________________________________<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" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
</blockquote></div>