[Insight-developers] The Evil Ternary operator.
Brad King
brad.king at kitware.com
Tue Aug 31 16:02:51 EDT 2010
On 08/31/2010 03:51 PM, Dženan Zukić wrote:
> On Mon, Aug 30, 2010 at 17:43, Frank Miller <frankmiller at jhmi.edu
> <mailto:frankmiller at jhmi.edu>> wrote:
>
> I feel compelled to express some support for the ternary operator.
> Consider the following
>
> const int step = stepBackward ? -1 : 1;
>
> Well, this looks like a worthy exception. But I also hate operator ?:
> nested in other code.
We could simply say that it is allowed in initializers.
-Brad
More information about the Insight-developers
mailing list