[swift-evolution] [Review] SE-0182 - String Newline Escaping

Chris Lattner clattner at nondot.org
Wed Jul 19 18:40:51 CDT 2017


> On Jul 17, 2017, at 4:43 AM, David Hart via swift-evolution <swift-evolution at swift.org> wrote:
> 
> To add a data point, I migrated the Swift Package Manager to use Swift 4’s multi-line strings this weekend. Nearly all of the resulting multi-line strings required an ending new-line, forcing me to write the following pattern everywhere:
> 
> let text = ""”
>     lorem ipsum dolor sit amet
>     consectetur adipiscing elit
>     sed do eiusmod
> 
>     “”"

Can’t you use ... eiusmod\n instead of a blank line?

-Chris


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


More information about the swift-evolution mailing list