View Single Post
  #4   Spotlight this post!  
Unread 04-04-2004, 21:22
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
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
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php