const assignments problem again
Lutger Blijdestijn
lutger.blijdestijn at gmail.com
Sun Aug 7 05:39:19 PDT 2011
Timon Gehr wrote:
> Lutger Blijdestin wrote:
>> I like the ternary operator the best for this, as it is the simplest. I
>> always write them like this though, liberally include parenthesis and
>> never nest:
>> (condition)
>> ? (truth value)
>> : (false value)
>
> What is the benefit of this, compared to leaving parentheses away
> entirely?
Oh, I didn't mean to *always* include parenthesis. Just that when a more
complicated expression is involved, I find it often faster to understand if
there are some redundant parenthesis.
More information about the Digitalmars-d
mailing list