Re: short_open_tag

From: Date: Fri, 21 Mar 2008 20:30:23 +0000
Subject: Re: short_open_tag
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-36280@lists.php.net to get a copy of this message
The thing is that <?php echo would require a ; while <?phpecho wouldn't. And if you ronly argument is saving a few keystrokes then we should really get rid of short open tags completely. And definitively not making their use easier.
It is easier to use templates with <?= ?> then with full PHP syntax, they look cleaner. Just look how many other templates use "tag" syntax - either {SOMETHING} or <%= SOMETHING %> or some like that. Do you that's because they are too stupid or too lazy - or because they listen to the users? ASP, JSP and Ruby all have <%=, does it teach us anything about people liking short tags? Look how many examples you short syntax - why is that? Because it looks better and easy to read. And the only objection to that is - it's not valid XML. OK, it is not valid XML - why should it be? Why should PHP programmer work harder and PHP code look worse than Ruby, JSP or ASP - just because of arbitrary requirement of XML compliance? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#36280) next »