Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: poll ideas quest 2007

by sasdrtx (Friar)
on May 08, 2008 at 11:10 UTC ( #685435=note: print w/ replies, xml ) Need Help??


in reply to Re: poll ideas quest 2007 (holy war)
in thread poll ideas quest 2007

Brace placement style. A lot of people tend to be very religious about this.

# The best way... if (something) { do something; do some more; } else { whatever; whatever; } # The acceptable style: if (something) { do something; do some more; } else { whatever; whatever; } # The classic K&R style (ugh): if (something) { do something; do some more; } else { whatever; whatever; } # The conversational style... if (something) {do something; do some more} else {whatever; whatever}

I'm not sure if there's any major variants that I've missed.

sas


Comment on Re^2: poll ideas quest 2007
Download Code
Re^3: poll ideas quest 2007
by Tux (Monsignor) on May 18, 2008 at 19:01 UTC

    The best, and only acceptable way is, of course:

    # The best way... if (something) { do something; do some more; } else { whatever; whatever; }

    Enjoy, Have FUN! H.Merijn

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://685435]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2015-07-05 18:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls