One Style To Rule Them All (tm)... age-old problem, n'eh?

I'm hardly the one to dictate, because I use the ternary operator more
often than sane people do. I find it easy to read, but YMMV.

The general (don't quote me) consensus as to using curly braces is to
use them all the time, because that makes your code more maintainable
as you insert new lines. Then again, some very "pro" code leaves them
off for single-line statements -- but whether that code went through I
preprocessor I couldn't tell you.

-- S.

Reply via email to