[swift-evolution] multi-line string literals.

Adrian Zubarev adrian.zubarev at devandartist.com
Mon Apr 3 09:44:23 CDT 2017


IMHO this is what multi-lined strings are meant for in first place, for better code readability without precision tradeoffs. You’re not expecting multi-lined chained methods to do something else as they’re meant for. We’re allowing multi lines there for readability not for more functionality.

That’s why I disagree that multi-line strings should add new lines automatically to the string.



-- 
Adrian Zubarev
Sent with Airmail

Am 3. April 2017 um 16:33:05, Ricardo Parada (rparada at mac.com) schrieb:

let veryLongString2 = "word word word" +
"word word word" +
  "word word word"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170403/a09114f2/attachment.html>


More information about the swift-evolution mailing list