Re: RFC: coding standards document
| From: | Andi Gutmans | Date: | Sat, 16 Dec 2000 20:42:15 +0000 |
| Subject: | Re: RFC: coding standards document | ||
| References: | 1 | Groups: | php.pear |
| Request: | Send a blank email to php-pear+get-708@lists.php.net to get a copy of this message | ||
Stig,
I think it should be the same as the PHP C code. Is it a good idea to have two different coding standards?
I think having tab's is a very big benefit (it rarely is a nuisance although it does happen). It is much easier to adjust the code's indentation when you modify/rip it apart :)
In any case, the same way as people will be defining in their editor that tab == 4 spaces they can define that the default tab is 4 spaces large. So in both cases you need to configure your editor.
If everyone reached a consensus then I won't ruin it but I just want to share my opinion. And I'm going to shoot people who commit non-tabified code (i.e. spaces) to the C PHP :)
Andi
At 08:15 PM 12/16/00 +0100, Stig S. Bakken wrote:
Andi, I find that relying on tabs is a bad idea, since the default tab width varies from editor to editor. We just had the same discussion on this list, and the consensus was to not use tabs. - Stig On Sat, 16 Dec 2000, Andi Gutmans wrote: | Shouldn't the indentation of PEAR be the same as of PHP? | A tab "represents" four spaces but we don't do a tab->spaces conversion but | keep them as tabs. | | Andi | | At 01:18 AM 12/16/00 +0200, Martin Pedak wrote: | >Chuck Hagenbuch wrote: | > | >>Quoting Martin Pedak <qwerty@webmedia.ee>: | >> | >>>What is what? | >>>http://utvikler.start.no/code/php_coding_standard.htm and the | >>>attachented CODING_STANDARS.txt | > | >>The attached file is just a link (broken, it seems) to some company's | >>standard | > | >Sorry, put the "l" (L) to the end of the URL and it works. (Copy & Paste :)) | >http://utvikler.start.no/code/php_coding_standard.html | > | >Martin Pedak | > | > | >-- | >PHP Extension and Add-on Repository (PEAR) mailing list. | >Documentation can be found at http://pear.php.net/doc/pear.html | >To unsubscribe, e-mail: php-pear-unsubscribe@lists.php.net from the | >mail address you subscribed with. | | --- | Andi Gutmans <andi@zend.com> | http://www.zend.com/ | |--- Andi Gutmans <andi@zend.com> http://www.zend.com/