[swift-evolution] multi-line string literals

Travis Tilley ttilley at gmail.com
Fri Dec 11 17:35:04 CST 2015

Fair enough point. But wouldn't we still want indentation erasure which
would be counter-intuitive for what we expect from triple backticks?
like... a block of json defined in the middle of a function, this having
maybe two levels of indentation to be erased.

On Fri, Dec 11, 2015 at 6:26 PM, Drew Crawford <drew at sealedabstract.com>

> That's an interesting idea!  What about """ for escaped strings and ```
> for unescaped literal strings?
> The latter is intuitive for me for preformatted text (with JSON et al
> are), and Swift in fact uses Markdown for doc comments, so we assume some
> familiarity from the developer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151211/18875ae3/attachment.html>

More information about the swift-evolution mailing list