<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 22 Jun 2016, at 09:39, Goffredo Marocchi via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">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.</div></div></blockquote><br class=""></div><div>The following two lines are equivalent:</div><div><br class=""></div><div><font face="Monaco" class=""><span class="Apple-tab-span" style="white-space:pre">        </span>return "Value of foo is \(foo), have a nice day!"</font></div><div><font face="Monaco" class=""><span class="Apple-tab-span" style="white-space:pre">        </span>return "Value of foo is " + foo + "have a nice day!" // Assuming foo is a String already</font></div><div><br class=""></div><div>So in a way you can think of \() as being a means of escaping from the string entirely. I find this more logical than the idea which other languages encourage which is that the variable is somehow embedded inside the string, which is why I actually really like having escape do this in Swift.</div></body></html>