[swift-evolution] multi-line string literals

Andrey Tarantsov andrey at tarantsov.com
Fri Dec 11 19:55:04 CST 2015


My 5 cents:

+1 for indentation removal as the default (and maybe the only option). This is really the only common case.

+1 for removing all indentation based on either the first or the least indented line;
-1 for using the position of """ to indicate the amount of indentation to remove — nothing is more stupid than forcing to write an extra newline before """.

+1 for """, it communicates the fact that this is a regular string, just a bit longer than other strings;
-1 for ```, I believe that backticks communicate a bigger difference than there is.

+1 for not complicating it further than that.

+100 for the feature, overall.

A.



More information about the swift-evolution mailing list