Hello Monks
I recently inherited a code base that has some... interesting constructs.
For instance this one:
if ($var || 2) { # do stuff here } else { # won't do stuff }
Now, I know that the else will never execute because the conditional is always true. But what does the compiler do? I would think it would Optimize away the else, would it even optimize away the if? How can I see what is happening? O=Deparse only deparses and doesn't actually compile the code, right?
Thanks for the assistance
In reply to Compiler Optimization by three18ti
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |