Addressed to: Yasuo Ohgaki <[EMAIL PROTECTED]>
              [EMAIL PROTECTED]

** Reply to note from Yasuo Ohgaki <[EMAIL PROTECTED]> Sun, 28 Apr 2002 09:24:21 
+0900
>   
> It's Zeev's version. Everyone happy with this?
>   
> <note> <para> Using short tags should be avoided when developing
> applications or  libraries that are meant for redistribution, or
> deployment on PHP  servers which are not under your control, because
> short tags may not be  supported on the target server. For portable,
> redistributable code, be  sure not to use short tags. </para> </note>


+1



In answer to your question about why I prefer short tags, PHP is my
template engine.  I write two distinct styles of PHP code.  One is mostly
code, in which having one <?php at the top of the page wouldn't hurt
anything.  The other is mostly HTML with little bits of PHP embedded.  This
is where losing short tags would get very tedious.  There can be dozens of
transistions between PHP and HTML in one of these files.  I use <?, <?= and
<? if() : ?> / <? while : ?> alternate syntax in these files extensively
because they result in more compact code that doesn't obscure the HTML
content I'm trying to paint.

My complaint isn't so much about having to type four more characters each
time as it is about making lines longer causing them to break, and having
to scroll around the source code more when trying to understand it.  



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

Reply via email to