How does it not work? Are you sure you want to declare the variable inside the eval rather than declaring it outside and then merely set it inside?
Also, what makes you think that eval is shorter or simpler than the first code snippet? You're free to use the A?B:C in the first snippet too.
In reply to Re: I can't see why this shorthand doesn't behave like the verbose form
by SuicideJunkie
in thread I can't see why this shorthand doesn't behave like the verbose form
by isync
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |