[swift-evolution] Proposal: support multi-line string text when assign a string variable

杨晖 beyondstorm at gmail.com
Sun Jan 17 03:05:08 CST 2016


hi, everyone,

when I have a long text string to assign a string variable, including
<http://www.baidu.com/link?url=NInXMacmUshIkK_HfkkFQmpygHwtCmzRnK8FcjFbBnQxXyk3dt9fROTuWYT66p_RY-f_tK4I_ejW-OPCGLyjKOu8kP8dM4DPDL-PcloSDIS>line
break character, I can’t do it like this in playground:

var str = "abcd
            efg"


but in other languages(for example, PHP), we can do it:

$str = "asdf
                sdfasdf";
var_dump($str);

So can Swift support this feature in next version?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160117/4c8a571d/attachment.html>


More information about the swift-evolution mailing list