Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #14835
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Indent style |
| Date | 2015-01-17 19:08 +0100 |
| Organization | PointedEars Software (PES) |
| Message-ID | <2217729.AVvK8bdUBl@PointedEars.de> (permalink) |
| References | <66710953-7d91-407e-8589-b919c0adba6a@googlegroups.com> <5602796.CH6WsXFhKx@PointedEars.de> <87k30nzv68.fsf@ahungry.com> <1879834.QDGmRacGsM@PointedEars.de> <m9e57l$n2b$1@solani.org> |
Christoph M. Becker wrote: > Thomas 'PointedEars' Lahn wrote: >> I could live with GNU Style¹ if it would not make it so hard to tell >> function/method calls apart. (I prefer Allman style [ibd.] except for >> expressions, and I have started to insert the space before parameter >> lists in declarations, to tell them apart from calls.) > > Wouldn't your former Allman style variation be 1TBS[ibd.]? Yes, it would not, because 1TBS requires that the opening brace is written on the same line as the declaration/control statement, while Allman style requires that it is written one line below it, starting in the same column. 1TBS also makes no statement as to whether declarations should be written differently than calls with regard to whitespace; given that it is described as a variant of K&R style, and in the K&R example the formal parameter list is not preceded by whitespace, it appears not to make such one. >> ¹ <https://en.wikipedia.org/wiki/Indent_style#GNU_style> -- PointedEars Zend Certified PHP Engineer Twitter: @PointedEars2 Please do not cc me. / Bitte keine Kopien per E-Mail.
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
mysql_connect statement not connecting to database mcghepa@gmail.com - 2015-01-15 08:21 -0800
Re: mysql_connect statement not connecting to database Matthew Carter <m@ahungry.com> - 2015-01-15 11:49 -0500
Re: mysql_connect statement not connecting to database Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-01-15 18:01 +0100
Re: mysql_connect statement not connecting to database Matthew Carter <m@ahungry.com> - 2015-01-15 14:43 -0500
Re: mysql_connect statement not connecting to database Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-01-17 15:48 +0100
Indent style (was: mysql_connect statement not connecting to database) "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-01-17 18:13 +0100
Re: Indent style Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-01-17 19:08 +0100
Re: Indent style "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-01-22 14:22 +0100
Re: mysql_connect statement not connecting to database richard <noreply@example.com> - 2015-01-16 00:10 -0500
Re: mysql_connect statement not connecting to database Denis McMahon <denismfmcmahon@gmail.com> - 2015-01-16 10:03 +0000
csiph-web