in reply to I can't see why this shorthand doesn't behave like the verbose form
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: I can't see why this shorthand doesn't behave like the verbose form
by isync (Hermit) on Mar 25, 2012 at 11:44 UTC | |
by Anonymous Monk on Mar 25, 2012 at 14:17 UTC | |
by isync (Hermit) on Mar 25, 2012 at 17:02 UTC | |
by Anonymous Monk on Mar 25, 2012 at 17:13 UTC |