[swift-evolution] [Review] SE-0168: Multi-Line String Literals

Adrian Zubarev adrian.zubarev at devandartist.com
Sat Apr 15 02:30:52 CDT 2017


It might really be non-odious, but it’s the correct behavior. It’s the same as you’d write this "123\n456" + "\n" + "789" or "123\n456" + "\n" + "" + "789".



-- 
Adrian Zubarev
Sent with Airmail

Am 14. April 2017 um 23:54:39, BJ Homer (bjhomer at gmail.com) schrieb:

On initial intuition, it seems strange that ‘a’ has a blatantly visible blank line at the end which seemingly “disappears” when the strings are concatenated. If I think about it for a bit, I can understand why that would be the case, but I think it’s non-obvious.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170415/763acf2c/attachment.html>


More information about the swift-evolution mailing list