Malcolm wrote:
> <> wrote
>
>> What's your opinion on something like "x += x < MAX_VALUE" where
>> x is an integral type ? Elegant or ugly and incomprehensible ?
>
> Compileable gibberish.
>
> At very worst make it x += (x < MAX_VALUE) ? 1 : 0;
It's already obscured, why obscure it further with the useless ?:
operator? All that can do is permit the compiler to generate
useless code.
--
"A man who is right every time is not likely to do very much."
-- Francis Crick, co-discover of DNA
"There is nothing more amazing than stupidity in action."
-- Thomas Matthews
|