Thread: formatting
View Single Post
Old 03-28-2003, 07:18 PM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road
formatting

which style do you prefer?

Style 1:
Code:
if( var == 1) {

  print("something);

} else {

  print("something else");

}
Style 2:
Code:
if( var == 1) 
{

  print("something);

} 
else 
{

  print("something else");

}
i'm mainly talking about the bracket layout here. which style do you prefer?
sde is offline   Reply With Quote