[swift-evolution] Long, multiline strings
Carlos Rodríguez Domínguez
khain2007 at gmail.com
Mon Dec 21 12:02:18 CST 2015
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.).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution