I don't think preincrementing is unintuitive, and I don't think it's a bad coding practice either. In fact to me it's more intuitive. If you know the difference between the two and the rest of your code is clear and well-written it should make no difference which one you use on a regular basis. Combining either one with other operators (and combining ANY operators with macros) in the same statement is a bad idea in the first place because the intent can be unclear. Using macros is just a bad idea in general; the only reason they even exist in C++ is for backward compatibility with C.
On another note, I give my congratulations to Prince for being a new C++ coder who actually writes standard code.
|