<div dir="ltr"><div><div>There already exists a long thread (around 100 messages) on how to propose the best multi-line string literals for Swift.<br></div>Please check out &quot;<a href="https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20151207/001565.html" target="_blank">[swift-evolution] multi-line string literals</a>&quot;.<br><br></div>—Johan<br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jan 17, 2016 at 10:05 AM, 杨晖 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 dir="ltr">

<div style="font-family:&#39;Helvetica Neue&#39;;font-size:14px"><br></div><div style="font-family:&#39;Helvetica Neue&#39;;font-size:14px">hi, everyone,
</div><div style="font-family:&#39;Helvetica Neue&#39;;font-size:14px"><br></div><div style="font-family:&#39;Helvetica Neue&#39;;font-size:14px">when I have a long text string to assign a string variable, including<span style="color:rgb(0,0,0)"><a href="http://www.baidu.com/link?url=NInXMacmUshIkK_HfkkFQmpygHwtCmzRnK8FcjFbBnQxXyk3dt9fROTuWYT66p_RY-f_tK4I_ejW-OPCGLyjKOu8kP8dM4DPDL-PcloSDIS" target="_blank"> </a>line break </span>character, I can’t do it like this in playground:
</div><div style="font-family:&#39;Helvetica Neue&#39;;font-size:14px"><br></div><div style="font-family:&#39;Helvetica Neue&#39;;font-size:14px"><span style="font-stretch:normal;font-size:11px;font-family:Menlo;color:rgb(187,44,162)">var</span> <span style="font-size:11px"><span style="font-family:Menlo">str = &quot;abcd</span></span>
</div><div style="font-family:&#39;Helvetica Neue&#39;;font-size:14px"><span style="font-size:11px"><span style="font-family:Menlo">            efg&quot;</span></span></div><div style="font-family:&#39;Helvetica Neue&#39;;font-size:14px"><br></div><div style="font-family:&#39;Helvetica Neue&#39;;font-size:14px"><br></div><div style="font-family:&#39;Helvetica Neue&#39;;font-size:14px">but in other languages(for example, PHP), we can do it:
</div><div style="font-family:&#39;Helvetica Neue&#39;;font-size:14px"><br></div><div style="font-family:&#39;Helvetica Neue&#39;;font-size:14px">$str = &quot;asdf
</div><div style="font-family:&#39;Helvetica Neue&#39;;font-size:14px">                sdfasdf&quot;;
</div><div style="font-family:&#39;Helvetica Neue&#39;;font-size:14px">var_dump($str);
</div><div style="font-family:&#39;Helvetica Neue&#39;;font-size:14px"><br></div><div style="font-family:&#39;Helvetica Neue&#39;;font-size:14px">So can Swift support this feature in next version? </div></div>
<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" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
<br></blockquote></div><br></div></div>