[swift-evolution] multi-line string literals

Kenny Leung kenny_leung at pobox.com
Mon Dec 14 12:56:19 CST 2015


How about this: a pseudo-function that will just include the contents of another file into your code?

let bigString = StringLiteral(“MyLifeStory”)

You have another file called “MyLifeStory.swiftstring” alongside your source file. Then there is no thinking about escaping, line endings, etc. Anything in that file is processed as the string.

-Kenny



More information about the swift-evolution mailing list