Re: RFC: Removing PHP tags

From: Date: Sun, 01 Apr 2012 02:38:14 +0000
Subject: Re: RFC: Removing PHP tags
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-59285@lists.php.net to get a copy of this message
Hi: sorry for say that, but the only benifit I can see, is save 5+ characters... thanks On Sun, Apr 1, 2012 at 10:31 AM, Klaus Silveira <klaussilveira@php.net> wrote: > What many people fail to see is that PHP is it's own templating language. > It might be ugly for people used to other template languages, but it works > perfectly and right out of the box. > > On Sat, Mar 31, 2012 at 11:24 PM, Klaus Silveira <klaussilveira@php.net>wrote: > >> Removing PHP's native feature of being able to be easily embedded inside >> HTML and other markup languages is absolutely retrograde. Of of the biggest >> points in favor of PHP is that i'm able to easily do this: >> >> <ul> >> <?php foreach ($stuff as $item): ?> >> <li><?php echo $item ?></li> >> <?php endforeach; ?> >> </ul> >> >> Or this: >> >> <?xml version="1.0" ?> >> <store> >> <?php foreach ($stuff as $item): ?> >> <product><?php echo $item ?></product> >> <?php endforeach; ?> >> </store> >> >> Without having to implement any slow-as-hell template language. It works >> right out of the box. Using MVC as an argument for tag removal is a clear >> disrespect to the language itself. >> -- Laruence  Xinchen Hui http://www.laruence.com/

« previous php.internals (#59285) next »