RE: [PHP] PHP Standard style of writing your code
| From: | Chris W. Parker | Date: | Fri, 28 Apr 2006 22:18:15 +0000 |
| Subject: | RE: [PHP] PHP Standard style of writing your code | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-235045@lists.php.net to get a copy of this message | ||
Richard Lynch <mailto:ceo@l-i-e.com>
on Monday, April 24, 2006 11:50 PM said:
> So no matter what was actually typed, *I* would see:
>
> function foo ($x) {
> //body
> }
>
> but some heretic who doesn't know any better would see:
> function foo($x)
> {
> //body
> }
>
> Now *THAT* would be a feature worth paying for in an IDE! :-)
Setting aside the fact that you're completely wrong about your preference... ;)
What, in your mind, is the advantage to putting the opening brace on the same line as the function
call, logic statement, etc.? (Btw, this is a serious question!)
Chris.
p.s. Yes I'm still alive. Just haven't been able to work on any web related stuff for a
long time here are work. :( The downside of being the IT department.