> On 22 Jun 2016, at 09:39, Goffredo Marocchi via swift-evolution > <[email protected]> wrote: > > Sorry, but can you explain why the character used to escape strings is > also the best choice to do Variable value extraction/String interpolation? > They are two different concepts.
No they are not. Escape means nothing more than “stop interpreting characters literally for a bit and do something else”. It’s perfectly reasonable to think of \( … ) as a nothing more than a complicated escape sequence. I don’t think anybody has ever been confused by the fact that it happens at run time rather than compile time. Furthermore, if you change the escape character you have to introduce another escape sequence fro the character you have just taken and “$", I would argue is a poor choice since it is probably reasonable common to find it used literally in strings (unlike “\"). _______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
