Re: Re: Tabs or Spaces?

From: Date: Sun, 21 Nov 2004 22:53:36 +0000
Subject: Re: Re: Tabs or Spaces?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-202618@lists.php.net to get a copy of this message
On Nov 21, 2004, at 3:09 PM, Matthew Weier O'Phinney wrote:
* Daniel Schierbeck <dasch@ulmail.net>:
There seems to be some tendency towards using spaces instead of tabs when indenting PHP code - personally i can't come up with any reason not to use tabs. I was just wondering if any of you freakees had some sort of explanation...
Most likely due to PEAR standards:
    http://pear.sourceforge.net/en/standards.php
I'm not sure what the rationale was behind using spaces instead of tabs, but it's a standard I've seen in perl as well; it's not entirely unheard
I believe the rationale is that, since different environments define tabs as different sizes. So, the only way to be consistent across different environments is to use spaces. FWIW, many text editors can emulate tabs. That is, when typin, you can hit tab, but the text editor inserts spaces instead. I find this very useful. -ryan

« previous php.general (#202618) next »