<div class="gmail_quote">On Mon, Jul 25, 2011 at 4:52 AM, 海韵 <span dir="ltr"><<a href="mailto:lyricconch@gmail.com">lyricconch@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div id=":1y1">======example 5==================<br>
K = 1<br>
A = (K+1 as K, K+2 as Q) K*Q<br>
assert A == 6 # (1+1) * (1+2)<br>
assert K==1<br>
============example 6===============<br>
K = 1<br>
A = (K+1 as K) (K+2 as K) K * K<br>
assert A == 16 # ((1+1) + 2) * ((1+1) + 2)<br>
assert K == 1</div></blockquote></div><br><div>With some headscratching, I can figure out these examples. What I can't figure out is why you would possibly want to write code like this. It certainly doesn't enhance readability, and it wouldn't enhance performance or expressiveness of the language either. If you want to propose improvements to the language it should do at least one of those things.</div>
<div><br></div><div>-1 as -1</div><div><br clear="all"><font face="arial, helvetica, sans-serif">--- Bruce</font><div><font face="arial, helvetica, sans-serif">Follow me: <a href="http://www.twitter.com/Vroo" target="_blank">http://www.twitter.com/Vroo</a> <a href="http://www.vroospeak.com/" target="_blank">http://www.vroospeak.com</a></font></div>
<div><font face="arial, helvetica, sans-serif"><br></font></div><br></div>