<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><blockquote type="cite"><font color="#000000"><span style="background-color: rgba(255, 255, 255, 0);">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.</span></font></blockquote><br></div><div id="AppleMailSignature">I guess it is only a matter of personal preference... I do find the opposite to hold true, I like to think about the variable and its expansion so to speak in the target string.<br><br>Sent from my iPhone</div><div><br>On 22 Jun 2016, at 11:19, Haravikk &lt;<a href="mailto:swift-evolution@haravikk.me">swift-evolution@haravikk.me</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><br class=""><div><blockquote type="cite" class=""><div class="">On 22 Jun 2016, at 09:39, Goffredo Marocchi via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Sorry, but can you explain why the character used to &nbsp;&nbsp;escape &nbsp;&nbsp;strings is also the best choice to do &nbsp;&nbsp;Variable value extraction/String interpolation? &nbsp;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></div></blockquote></body></html>