[swift-evolution] multi-line string literals

Robert Bennett rltbennett at icloud.com
Mon Apr 3 09:28:59 CDT 2017


To throw another idea into the mix: the string surrounded with double quotes, each line beginning and ending with a single quote.

let foo = "This is my '
    'multi line string '
    'with lots of spaces at        '
    'the end of the above line '
    'and more at the start of '
    '           this line."




More information about the swift-evolution mailing list