Re: Revisiting Anonymous Classes
| From: | Andrea Faulds | Date: | Sat, 28 Jun 2014 13:46:27 +0000 |
| Subject: | Re: Revisiting Anonymous Classes | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-75123@lists.php.net to get a copy of this message | ||
On 28 Jun 2014, at 14:36, Sebastian Bergmann <sebastian@php.net> wrote:
> $o = new {
> public function method() {
> // ...
> }
>
> // ...
> };
I wanted a similar syntax for object literals, but seems you had the same idea for anonymous
classes.
Which makes me wonder if we need to implement the full features of a class. Could we perhaps use a
more compact, but limited, syntax for properties and methods here? Would these dummies need private
and protected members?
--
Andrea Faulds
http://ajf.me/