On 04/09/2012 05:10 PM, Tom Boutell wrote:
What if PHP supported a short tag for calling a method of $this?

Then one could write:

<?@escape($foo) ?>

And 'escape' could be upgraded and modified as needed in an object
oriented way without the need to type<?php $this->  many times.

You might be able to achieve this using the prep extension written by Andrei Zmievski: https://github.com/andreiz/prep/

A relevant example can be found here: https://github.com/andreiz/prep/tree/master/examples/array_literal where he introduces an alternative syntax to array().


--
Christer Edvartsen
http://cogo.wordpress.com/
http://twitter.com/#!/cogocogo

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to