[swift-evolution] multi-line string literals

Jason Dusek jason.dusek at gmail.com
Thu Dec 10 20:08:41 CST 2015


The worse that could happen is people sometimes (very rarely) need an
`indent` function to explicitly set and indent level for their multiline
string. Doesn't seem like the worst thing ever.

On Thu, 10 Dec 2015 at 18:04 Travis Tilley <ttilley at gmail.com> wrote:

> That would be my preference, especially since I can be lazy and re-use the
> existing indentation detection code in Lexer.cpp. However, one could argue
> that it could be confusing if indentation was intentional so I'd like to
> hear more people weigh in on that one, especially core team members.
>
> - Travis Tilley
>
>
> On Thu, Dec 10, 2015 at 8:46 PM, Jason Dusek <jason.dusek at gmail.com>
> wrote:
>
>> What do you all think about automatic dedenting of these literals? The
>> excess whitespace is rarely useful; and usually spawns a dedent function
>> which comes to decorate all such strings.
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151211/fe133738/attachment.html>


More information about the swift-evolution mailing list