[swift-evolution] Long, multiline strings
clattner at apple.com
Mon Dec 21 12:59:08 CST 2015
> On Dec 21, 2015, at 10:02 AM, Carlos Rodríguez Domínguez via swift-evolution <swift-evolution at swift.org> wrote:
Please catch up on the "multi-line string literals” thread, which discusses this exact topic.
> My idea is to include a new operator to generate multiline strings, similar to PHP, in which you can write something like this:
> $text = <<<EOT
> Place your text between the EOT. It's
> the delimiter that ends the text
> of your multiline string.
> This new feature could be highly beneficial, since it is increasingly common to mix multiple codes inside our own code. Furthermore, it could open the possibility to use Swift in Web environments in a friendlier manner (e.g. to generate HTML code faster, with syntax coloring, etc.).
> - Carlos
> swift-evolution mailing list
> swift-evolution at swift.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution