<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Oct 3, 2017 at 2:02 AM, Chris Lattner via swift-evolution <span dir="ltr"><<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">You want:<br>
<br>
x² to parse as “superscript2(x)” - not as an identifier “xsuperscript2” which is distinct from x.<br>
<br>
-Chris</blockquote><div><br></div><div><div>I am of two minds on this. Sometimes I want x² to parse as x*x (an operator) but other times I want to store the value of x*x in an identifier spelled… x². This could be simply to avoid repeatedly performing the same calculation, or it could be the natural result as in,</div><div><br></div><div><font face="monospace, monospace">let r² = someStatisticsThing(xVals, yVals)</font></div><div><br></div><div>Not sure where I’m going with this, just wanted to mention it.</div><div><br></div><div>Nevin</div></div></div></div></div>