|
Re: Do you use ternary operators in your code?
Maybe it's just the fact that I like functional programming much more than imperative, but I find myself using ?: all over the place, especially within arguments to function calls. For example, here's a line out of RoboEmu:
GetMenu()->CheckMenuItem(IDM_AUTO, (COSSpecific::autoMode ? MF_CHECKED : MF_UNCHECKED));
-Rob
|