[swift-evolution] multi-line string literals.

Ricardo Parada rparada at mac.com
Sat May 7 17:49:33 CDT 2016



It seems to me like this would take care of what is needed 99% of the time. 

I've seen many who don't favor continuation quotes. 

The other option could be triple quote """ and make the continuation quote optional. Not using the continuation quote would require the closing triple quote """

> On May 7, 2016, at 9:48 AM, Brent Royal-Gordon via swift-evolution <swift-evolution at swift.org> wrote:
> 
> ```
> // Something like:
> let xml = M"<?xml version="1.0"?>
>           "<catalog>
>           "	<book id="bk101" empty="">
>           "		<author>\(author)</author>
>           "	</book>
>           "</catalog>
> ```


More information about the swift-evolution mailing list