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

David Hart david at hartbit.com
Thu Jul 20 00:26:42 CDT 2017


I can, but it felt more odd to me than a blank line. But that's debatable.

> On 20 Jul 2017, at 01:40, Chris Lattner <clattner at nondot.org> wrote:
> 
> 
>> 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/20170720/f0df36a5/attachment.html>


More information about the swift-evolution mailing list