P
Peter Nilsson
Boltar said:Willem said:Now that we're talking about it anyway, here's a gripe I
have about the logicaloperators in C:
Why oh why is (a || b) not equivalent to (a ? a : b) [1]
How should you interpret this where a is a double and b is
a pointer?
And why isn't there alogical XOR operator? eg: a ^^ b
Same reason people don't check the archives before asking
a question that has been repeated many times: some people
just don't think that's necessary even though the time
and bandwidth savings are obvious. ;-)
LogicalXORmight not be required often
Bingo. The C standard isn't meant to codify everything that
might possibly be useful, rather the first standard mostly
codified existing _minimum_ practice. True, there were
some major additions (void, unsigned types, etc...) but
there's no shortage of 'wish list' items that were
rejected.