RE: [PHP] dev style guide

From: Date: Tue, 05 Aug 2003 20:22:37 +0000
Subject: RE: [PHP] dev style guide
Groups: php.general 
Request: Send a blank email to php-general+get-158348@lists.php.net to get a copy of this message
[snip] They use the One True Brace Style, which is encouraging: function fooFunction($arg1, $arg2 = '') { if (condition) { statement; } return $val; } [/snip] At the risk of starting a flame/religious/holy war I find the One True Brace style to have some inconsistency if it is as above. The 'function' does not open the curly brace at the EOL, but the 'if' does. I also mentioned me being and old-schooler earlier today but the rules that we use in our (current) group always place the opening curly at the EOL. Also, we do not allow ternary notation. We encourage Hungarian notation, but do not require it if the documentation is clear. HTH!

« previous php.general (#158348) next »