I was giving an replacement for the if statement presented above, where both expressions are on the same line.
Yes. And cast that 0 to (void), so the compiler won't complain over an unused expression. Any C programmer will recognize what (void)0 means, do nothing.
Second example is very readable using Allman style: if( condition_a ) { if( condition_b ) { do_thing_a(); } else { do_thing_b(); } } else { do_something_else(); } Editor space is free, why not use it.
Those if statement should be written using the ternary operator. In my subjective opinion, putting the expression in the same line as the if statement is awful. Objectively it is worse because you create a possibility…
Terrorists cannot be innocent. /s
If only Twitter joined them.
It's rare but it does exist: https://en.wikipedia.org/wiki/Kim_Peek
Welcome to the future (of 2013): https://youtu.be/8SkdfdXWYaI?t=9m5s https://youtu.be/8SkdfdXWYaI?t=16m22s Don't forget to see the entire talk (28 minutes): https://www.youtube.com/watch?v=8SkdfdXWYaI
The pdf is discussing vehicles, specifically aircraft, that would utilize LENR assuming it works. Here is an excerpt from the pdf: This report does not explore the feasibility of LENR. Instead, it assumes that a working…
I was giving an replacement for the if statement presented above, where both expressions are on the same line.
Yes. And cast that 0 to (void), so the compiler won't complain over an unused expression. Any C programmer will recognize what (void)0 means, do nothing.
Second example is very readable using Allman style: if( condition_a ) { if( condition_b ) { do_thing_a(); } else { do_thing_b(); } } else { do_something_else(); } Editor space is free, why not use it.
Those if statement should be written using the ternary operator. In my subjective opinion, putting the expression in the same line as the if statement is awful. Objectively it is worse because you create a possibility…
Terrorists cannot be innocent. /s
If only Twitter joined them.
It's rare but it does exist: https://en.wikipedia.org/wiki/Kim_Peek
Welcome to the future (of 2013): https://youtu.be/8SkdfdXWYaI?t=9m5s https://youtu.be/8SkdfdXWYaI?t=16m22s Don't forget to see the entire talk (28 minutes): https://www.youtube.com/watch?v=8SkdfdXWYaI
The pdf is discussing vehicles, specifically aircraft, that would utilize LENR assuming it works. Here is an excerpt from the pdf: This report does not explore the feasibility of LENR. Instead, it assumes that a working…