-1. PHP doesn't need more magic.
On Mon, Apr 9, 2012 at 4:53 PM, Nikita Popov <nikita....@googlemail.com>wrote: > On Mon, Apr 9, 2012 at 5:10 PM, Tom Boutell <t...@punkave.com> wrote: > > What if PHP supported a short tag for calling a method of $this? > > > > Then one could write: > > > > <?@escape($foo) ?> > > A big -1 on this. > > If you want to roll your own template syntax, just do so. It's not > that hard to run a quick str_replace('<?@', '<?php echo $this->', > $code) over the template. > > Especially consider that @ is already used for error suppression, so > code that previously just wanted to suppress some errors will suddenly > try to call class methods (which obviously will lead to fatal errors). > > Nikita > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >