Re: Which is better coding style...
| From: | Chris Lee | Date: | Thu, 19 Apr 2001 22:51:58 +0000 |
| Subject: | Re: Which is better coding style... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-49468@lists.php.net to get a copy of this message | ||
I would like to see an editor with a built in code beutifier and un-beutifier. I like the
if (true)
{
} else
{
}
method, but pear standards are
if (true) {
} else {
}
it would be nice to see ultra edit convert it to the first format for me and save it as the second
for pear.
--
Chris Lee
lee@mediawaveonline.com
"Philip Olson" <philip@cornado.com> wrote in message news:Pine.BSF.4.10.10104192119590.43248-100000@localhost...
coding style? here's what pear has to say :
http://www.php.net/manual/en/pear.standards.php
http://www.php.net/manual/en/pear.standards.control.php
[ example ]
switch (condition) {
case 1:
action1;
break;
case 2:
action2;
break;
default:
defaultaction;
break;
}
[ /example ]
variables can be very useful.
return is cool too.
:)
regards,
philip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net