Re: Re: Tabs or Spaces?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Nov 21, 2004, at 3:09 PM, Matthew Weier O'Phinney wrote:

* Daniel Schierbeck <dasch@xxxxxxxxxx>:
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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux