<div dir="ltr"><div class="gmail_extra">My previous message was probably rash. I should have thought it over instead of writing a knee-jerk response.<div><br></div><div>I&#39;m not sure now that it&#39;s the syntax that is the issue in that example. After I sent that message I started thinking about what I would do in real life if I had to write that code, and there&#39;s plenty of ways one could simplify it. For example, one could write a couple closures to handle the different types of calculations that are done with the result, etc. </div><div><br></div><div>My gripes with the code are probably more to do with the explicit casting, and - as you point out, Craig - the &quot;let&quot; for the argument of that enum case. The casting could be worked around, easily. And most enums don&#39;t even have any arguments...</div><div><br></div><div>Just ignore my last message. I think I was off base.</div><div><br></div></div></div>