[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
The Nightstar Zoo • View topic - How do you format your C/C++/Java if statements?

The Nightstar Zoo

Nightstar IRC Network - irc.nightstar.net
It is currently Thu Jun 27, 2019 7:13 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 13 posts ] 


0%  0%  [ 0 ]
69%  69%  [ 9 ]
8%  8%  [ 1 ]
0%  0%  [ 0 ]
15%  15%  [ 2 ]
8%  8%  [ 1 ]
Total votes : 13
Author Message
PostPosted: Sun Oct 02, 2005 12:02 am 
Offline
Nightstar Graveyard Daemon
User avatar

Joined: Mon Jun 03, 2002 8:30 pm
Posts: 1071
Location: Wouldn't you rather observe my Velocity?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 02, 2005 12:09 am 
Offline
Energizer Bunny
User avatar

Joined: Wed May 22, 2002 12:24 am
Posts: 1634


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 02, 2005 8:41 pm 


Top
  
 
 Post subject:
PostPosted: Sun Oct 02, 2005 8:58 pm 
Offline
Energizer Bunny
User avatar

Joined: Wed May 22, 2002 12:24 am
Posts: 1634


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 03, 2005 5:48 am 
Offline
Nightstar Graveyard Daemon
User avatar

Joined: Mon Jun 03, 2002 8:30 pm
Posts: 1071
Location: Wouldn't you rather observe my Velocity?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 03, 2005 9:04 am 


Top
  
 
 Post subject:
PostPosted: Mon Oct 03, 2005 9:48 am 
Offline
Concession Worker
Concession Worker
User avatar

Joined: Tue Jul 01, 2003 5:26 pm
Posts: 1479
Location: R'lyeh
Hanging brace, space after if.

Once upon a time I too used newline braces, but I found hanging braces to be more readable... the newline brace seemed to disassociate the subsequent code block from the if that preceded it.
Besides, it's aesthetically more pleasing. :)

I find that adding a space after an if also makes the code a bit more readable, as it becomes even more instantly recognizable as a conditional clause. The "if-SPACE-something"<sup>*</sup> notation also ties in rather nicely with the natural language paradigm the C keywords strive for.



<sup>*</sup> nomenclature nicked from the latest PartiallyClips. :)

_________________
Living in a state free from the burdens of privacy and democracy since 2008-06-18.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 03, 2005 1:04 pm 


Top
  
 
PostPosted: Mon Oct 03, 2005 7:35 pm 


Top
  
 
 Post subject:
PostPosted: Tue Oct 04, 2005 1:03 pm 


Top
  
 
 Post subject:
PostPosted: Tue Oct 04, 2005 2:11 pm 


Top
  
 
 Post subject:
PostPosted: Tue Oct 04, 2005 2:23 pm 


Top
  
 
 Post subject:
PostPosted: Tue Oct 04, 2005 9:45 pm 


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group