On Oct 25, 2011, at 15:45 , Michael Haberler wrote: > case 1: // always cw > command = revs + target_angle + > - (target_angle < spindle_angle) ? 1.0 : 0.0; > + ((target_angle < spindle_angle) ? 1.0 : 0.0); > break;
I hate the ?: operator because it's error prone and terse. I had to stare at that code dumbly for 30 seconds before seeing the change, and then I had to write a program to see if i saw it right... "Optimise for folk reading the code." -- Robert Collins -- Sebastian Kuzminsky ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
