Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #14835

Re: Indent style

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.php
Subject Re: Indent style
Date Sat, 17 Jan 2015 19:08:50 +0100
Organization PointedEars Software (PES)
Lines 26
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>
Reply-To Thomas 'PointedEars' Lahn <php@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding 8Bit
X-Trace solani.org 1421518155 3808 eJwFwQkBwDAIA0BLZUACcloe/xJ25wpB0eAwX9/Zl1FVINiim59emi1nm2J6bkR7yhs/Gik/KIUQ7A== (17 Jan 2015 18:09:15 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Sat, 17 Jan 2015 18:09:15 +0000 (UTC)
User-Agent KNode/4.14.2
X-User-ID eJwFwQkBACAIA8BKKvLFgU36R/BOxbbBr6ldHR0fRiNxTwVL8IYWw50rs/O8Xk09ppAGolqzN32Fsx4B+4jxFyA=
Cancel-Lock sha1:xJvVHbo0z45HbpFoBWk2ZxkikHI=
X-NNTP-Posting-Host eJwFwQEBACAIA7BKIP/ROoj0j+DGkOsmRIHDmSqaIWI1H46vzumw1S4YsNPxUnVTbsl9PgkbD98=
Xref csiph.com comp.lang.php:14835

Show key headers only | View raw


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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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