RE: [PHP-DEV] Discourage use of short tags
| From: | Lukas Smith | Date: | Sat, 27 Apr 2002 07:56:21 +0000 |
| Subject: | RE: [PHP-DEV] Discourage use of short tags | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-83421@lists.php.net to get a copy of this message | ||
Well the point for me is that I want "clean php code" (the relevant part
of my definition of what this is for me should be apparent by the rest
of the email) when I see a script starting with "<?php" and I think this
is a valid goal.
This way it will be quite easy if the script is full of key-stroke
optimized code (and sorry key-stroke optimized is usually harder to read
as long as we are talking about using 1-2 chars versus 5-8 - obviously
if you have variable names that are longer than 25 chars its starts
getting problematic too). Key-stroke optimized code is simply not as
expressive.
Anyways I must admit I have never really seen or worked with any code
that uses "<%" and I would like to keep it that way.
Also since "<%" and "<?" does not work everywhere, people will be
reluctant to make use of it in public repositories, so newbies will not
be forced to try to decipher what "<?php=" means. And again imho this is
a good thing (tm).
So basically I am saying: use "<%" or "<?", even "<%=" if it
makes you
happy and saves you time, but please leave "<?php" out of the key stroke
optimization efforts. If you want key stroke optimization you already
got your variant that makes you happy.
Best regards,
Lukas Smith
smith@dybnet.de
_______________________________
DybNet Internet Solutions GbR
Reuchlinstr. 10-11
Gebäude 4 1.OG Raum 6 (4.1.6)
10553 Berlin
Germany
Tel. : +49 30 83 22 50 00
Fax : +49 30 83 22 50 07
www.dybnet.de info@dybnet.de
_______________________________
> -----Original Message-----
> From: php4@developersdesk.com [mailto:php4@developersdesk.com]
> Sent: Friday, April 26, 2002 6:05 PM
> To: Yasuo Ohgaki; php-dev@lists.php.net
> Subject: Re: [PHP-DEV] Discourage use of short tags
>
> Addressed to: Yasuo Ohgaki <yohgaki@yahoo.co.jp>
> php-dev@lists.php.net
>
> ** Reply to note from Yasuo Ohgaki <yohgaki@yahoo.co.jp> Sat, 27 Apr
2002
> 07:47:08 +0900
> >
> > I've changed basic-syntax.xml a little. The manual list short tag
first,
> > even if it recommends <?php tag.
> >
> > Anyway, I would like to add something like
> >
> > <note> <para> Use of short tag is strongly discouraged. It not only
> > non-portable and non-XML compliant, but also a obsolete feature.
</para>
> > </note>
> >
> > There are too many hosting services that enable short tag by
default. In
> > many case, user cannot do anything..
> >
> > Any comments?
>
> -maxint!
>
>
> IM(ns)HO There aren't enough hosting services that support short
tags!
>
> If you don't like them don't use them, but don't force me to follow
your
> programming rules. Short tags have been available for a long time,
and
> work just fine, thank you.
>
>
> I also strongly prefer <?= to <? echo. If you don't that's fine don't
use
> them. I use them and have a large code base that uses them
extensively,
> and don't intend to change. Please don't try to force me to change to
> follow your code standards when what I'm doing has been part of the
> language much longer than you've been around this forum.
>
> Grrr!
>
>
> Rick
>
> Rick Widmer
> Internet Marketing Specialists
> http://www.developersdesk.com
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php