RE: [PHP-DEV] <?= and <%= both work, why not <?php=

From: Date: Fri, 26 Apr 2002 14:56:17 +0000
Subject: RE: [PHP-DEV] <?= and <%= both work, why not <?php=
Groups: php.dev 
Request: Send a blank email to php-dev+get-83367@lists.php.net to get a copy of this message
> -----Original Message----- > From: Brinkman, Theodore > [mailto:Theodore.Brinkman@standardregister.com] > Sent: 26 April 2002 14:55 > To: 'PHP Developers Mailing List' > Subject: RE: [PHP-DEV] <?= and <%= both work, why not <?php= > > > Sure, and its only an extra 4 character, really. But that's > not the issue > at hand. The issue at hand is that the inconsistency of > supporting <?= and > <%= but not <?php= encourages quite a few people to use the > 'optional' short > form tags, meaning that their code isn't portable. I guy here who till recently poo-poo'd asp tags is now using them because <%=$VAR;%> is emminently more readable than the alternative. > For each person who says <?php= $variable ?> is hard to read > at least one > other person says they find <?php echo $variable ?> harder to read. I > personally find the first easier to read when it is embedded > in the middle > of a long line of HTML (like an input tag for example). Yep. > What possible harm comes from improving the internal > consistency of the > language? Why is a two-line patch that would completely remove an > inconsistency so bitterly fought against? To emphasise; people here are adopting bad-old short tags in order to keep readability of code. It makes it easy to see the code is passive, echoing only. Sam

« previous php.dev (#83367) next »