in reply to Re: if/else syntax
in thread if/else syntax
over _any_ of the alternatives because it's elegant, concise and _absolutely_ clear. ikegami pointed out to me that ?: can get really messy really fast. I agree. But in the case at hand, it's unbeatable IMHO.$someVar == $anotherVar ? someFunc() : anotherFunc()
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: if/else syntax
by Marshall (Canon) on Jun 29, 2009 at 14:26 UTC |