Re: Revisiting Anonymous Classes
| From: | Sebastian Bergmann | Date: | Wed, 02 Jul 2014 20:46:24 +0000 |
| Subject: | Re: Revisiting Anonymous Classes | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-75177@lists.php.net to get a copy of this message | ||
Am 28.06.2014 20:53, schrieb Rowan Collins:
> Apart from a possibly new use case (although the wiki page does list "it
> would also definitely be very useful for mocking in tests" among the "Use
> Cases from the Community"), how is this proposal different from the one
> which was rejected less than a year ago?
I probably missed the use case back then :) I like the syntax I
proposed better (including the limitation regarding extending classes
and implementing interfaces) which is more similar to that of other
languages.
> For that matter, has there ever been discussion of a
> "statute on limitations" (time of other conditions for reopening
> discussion) for re-proposing previously rejected features?
Interesting question (that IMHO should be the topic of a separate
thread / RFC).