Re: [PHP] Re: Tabs or Spaces?

2004-11-22 Thread Philip Thompson
On Nov 21, 2004, at 4:53 PM, Ryan King wrote:
On Nov 21, 2004, at 3:09 PM, Matthew Weier O'Phinney wrote:
* Daniel Schierbeck [EMAIL PROTECTED]:
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
Word for word ditto.
~Philip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: Tabs or Spaces?

2004-11-22 Thread Daniel Schierbeck
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...

Wow, didn't mean to start a major debate :x
Thanks, now i know (switching to spaces).
--
Daniel Schierbeck
Help spread Firefox (www.getfirefox.com): 
http://www.spreadfirefox.com/?q=user/registerr=6584

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


[PHP] Re: Tabs or Spaces?

2004-11-21 Thread Matthew Weier O'Phinney
* Daniel Schierbeck [EMAIL PROTECTED]:
 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
of.

-- 
Matthew Weier O'Phinney   | mailto:[EMAIL PROTECTED]
Webmaster and IT Specialist   | http://www.garden.org
National Gardening Association| http://www.kidsgardening.com
802-863-5251 x156 | http://nationalgardenmonth.org

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



Re: [PHP] Re: Tabs or Spaces?

2004-11-21 Thread Ryan King
On Nov 21, 2004, at 3:09 PM, Matthew Weier O'Phinney wrote:
* Daniel Schierbeck [EMAIL PROTECTED]:
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