[swift-evolution] multi-line string literals

Tyler Cloutier cloutiertyler at aol.com
Mon Dec 14 17:43:12 CST 2015


> On Dec 14, 2015, at 2:21 PM, Andrey Tarantsov <andrey at tarantsov.com> wrote:
> 
>> Yes, you are right, Brent, there should be a closing quote on the last line otherwise it would be a syntax error. That’s a much better idea! That would also fix the 
>> 
>> let x = “foo
>> 
>> being valid syntax problem.
> 
> 
> Guys, you know this is crazy, right? :-)
> 
> 1) copy & paste would be really annoying (on that note, Xcode should totally get multiple cursors support like in Sublime)
> 
> 2) any non-specialized syntax highlighter would parse them all completely incorrectly, which is not a show-stopper, but shouldn't be taken lightly. (Think a generic indented code block in Markdown on GitHub.)
> 
> 3) it's just cruel — https://xkcd.com/859/ <https://xkcd.com/859/>
> 

Haha, perhaps it is cruel. Just think of it as a closing quote out at infinity. ;-)

Tyler

> <(.png>
> 
> A.
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151214/827c8a62/attachment.html>


More information about the swift-evolution mailing list