Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Ternary Operator

Name: Anonymous 2010-01-08 8:07

ALL HAIL!

Name: Anonymous 2010-01-08 23:50

>>31
One has more room to hide mistakes or dirty tricks, making it necessary to carefully read the whole thing, while there's nothing unexpected that could happen with a variable name and two constants. The situation is even worse when the if statements in question set a variable: anything could happen between the if statements and that variable's use. Underusing the ternary operator is bad style for the same reason that overusing goto is bad style.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List