Re: Tabs or Spaces?

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

 



On Nov 21, 2004, at 4:30 PM, M. Sokolewicz wrote:

Jon-Eirik Pettersen wrote:

Daniel Schierbeck wrote:
Hello there!

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...

One reason is that a space is a space and will allways be a space. A tab may be 5, 3 or whatever spaces depending on the editors configration. When more than one developer is developing on a project they will see the indenting differently when using tabs.
that's indeed usually it. However, remember that both a space and a tab are actually only a single character, so if you're looking at the amount of space both take, it's exactly the same. However, when indenting with 3 spaces instead of a single tab, then your code-size WILL increase, and will include 3x more "space content" than it used to :)

Who cares?

-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