Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • What language is this? Javascript? Python? Commented Aug 22, 2011 at 17:26
  • TheLQ, its not python, might be javascript. But it would be very similar if written in python Commented Aug 22, 2011 at 18:14
  • @TheLQ: it's Groovy, because that's what I'm doing these days, and probably Ruby too. The code for Javascript or Python or LUA or Perl would be very similar. Commented Aug 22, 2011 at 18:33
  • 4
    This, of course, has the effect of evaluating b even when the evaluation is not needed. Maybe that's a problem, maybe it's not. Commented Dec 18, 2014 at 1:19
  • @kevincline please, pretty please, "Lua", not "LUA". :) Commented Aug 18, 2017 at 20:35