1114
(杨晖)
1
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?
johankj
(Johan K. Jensen)
2
There already exists a long thread (around 100 messages) on how to propose
the best multi-line string literals for Swift.
Please check out "[swift-evolution] multi-line string literals
<https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20151207/001565.html>
".
—Johan
···
On Sun, Jan 17, 2016 at 10:05 AM, 杨晖 via swift-evolution < swift-evolution@swift.org> wrote:
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?
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution