Re: Discourage use of short tags

From: Date: Fri, 26 Apr 2002 18:05:04 +0000
Subject: Re: Discourage use of short tags
Groups: php.dev 
Request: Send a blank email to php-dev+get-83407@lists.php.net to get a copy of this message
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

« previous php.dev (#83407) next »