|
Re: Ternary operators
I would use them if I had a reason to. This year I never did.
and @above how so? (booleanValue ? true : false) is equivalent to booleanValue for all intents and purposes, and booleanValue is more succinct. There's no way the former could cause a memory leak, unless the latter does too.
__________________
cout << "Hello, robotics. Goodbye, world." << endl;
"The two-axis accelerometer provided in the kit of parts (shown in the picture below) is a two-axis accelerometer." - WPILib User's Guide
Last edited by Al3+ : 05-04-2010 at 12:29.
|