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

Johan Jensen jj at johanjensen.dk
Sun Jan 17 03:22:36 CST 2016


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 at 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 at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160117/daebe35e/attachment.html>


More information about the swift-evolution mailing list