Thread: formatting
View Single Post
Old 03-30-2003, 11:29 AM   #15 (permalink)
Cagez
Registered User
 
Join Date: Mar 2003
Posts: 3
Cagez is on a distinguished road
Code:
if($this) {
    that
}

else {
    this
}


loops(conditions)
{
    this
}


function / class
{
    here
}
For me it depends on how much code I'm putting between the curlies. If and else's I always use the same style, but for the others, if I'm only putting three lines, I use Style 1, if I'm putting lots of code, I use Style 2.
Cagez is offline   Reply With Quote