[asterisk-dev] strange libss7 coding style!

tian tian00di00 at live.com
Thu Jul 23 09:13:59 CDT 2009


Hi, guys!

suppose that A, B, C and D are some boolean expressions, the libss7 code 
used something like this:

if (  (A && B) ? 1 : (C || D)  )
    // statements when condition is true


I think the following would be equivalent and more clean

if (   (A && B) || (C || D)   )
    // statements when condition is true


I think this is strange coding style and am wondering what benefit can we 
get from this? Do you?


Regards,

Tian 




More information about the asterisk-dev mailing list