Re: Re: Is it true that short_open_tag is deprecated in PHP 6?

From: Date: Tue, 14 Apr 2009 11:41:24 +0000
Subject: Re: Re: Is it true that short_open_tag is deprecated in PHP 6?
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-43692@lists.php.net to get a copy of this message
I'm not suggesting anyone be forced to do anything. But: <?xml version="1.0" encoding="UTF-8" ?> ... <%= $this->that; %> Looks neater than: <?= '<?xml version="1.0" encoding="UTF-8" ?>'; ?> ... <?= $this->that; ?> Hence my suggestion. Glen. Mike Panchenko wrote: > On Mon, Apr 13, 2009 at 1:06 PM, Stanislav Malyshev <stas@zend.com> wrote: > > >> It's a pretty small use case (that's a problem only if you have xml >> documents which has to have php code which has to be inlined) and as you >> see, can be easily handled. I think that should not make whole very useful >> syntax deprecated. >> >> > > +1 > > One of the reason's for PHP's success IMO is the ease of creating templates > with it. Forcing everyone to write <?php echo $var ?> every time just just > so that you don't have to write <?php echo '<?...' once is not a fair > trade > off. My $.02. > > Mike. > >

« previous php.internals (#43692) next »