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

Brent Royal-Gordon brent at architechies.com
Tue Apr 11 16:01:07 CDT 2017


> On Apr 11, 2017, at 7:33 AM, Vladimir.S via swift-evolution <swift-evolution at swift.org> wrote:
> 
> 2. Seems like a mistake:
> "Multi-line string with indentation stripping prevented by whitespace before leading newline"
> 
> """↵
> ····Hello↵
> ····world!"""
> 
> Creates a string with:
> 
> ····↵
> ····Hello↵
> ····world!
> 
> I believe it should be just:
> 
> ····Hello↵
> ····world!


Sorry, this example is mislabeled. (The same heading is used twice.) It should be something like "Multi-line string with indentation stripping prevented by non-whitespace before trailing delimiter".

-- 
Brent Royal-Gordon
Architechies

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


More information about the swift-evolution mailing list