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.
