Code that makes your toes curl!

August 27, 2008

Whilst paging through a few tech blogs yesterday, I came upon the following code fragment:

if(a ? b : c)
{
  //  do something
}

nasty!

Advertisements

2 Responses to “Code that makes your toes curl!”

  1. scaryreasoner said

    Yeah, really. I mean, who puts the open curly brace on the next line like that? 🙂

  2. Corey said

    I’m curious. What makes that code nasty?
    having the curly brace on the next line, or the a ? b : c syntax? I’ve actually gotten into the habit of putting the curly brace on the next line so that my brace highlighting in Komodo IDE highlights the tabbed line from one brace to the other.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: