Re: Revisiting Anonymous Classes
| From: | Levi Morrison | Date: | Wed, 02 Jul 2014 21:07:08 +0000 |
| Subject: | Re: Revisiting Anonymous Classes | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-75178@lists.php.net to get a copy of this message | ||
On Wed, Jul 2, 2014 at 2:46 PM, Sebastian Bergmann <sebastian@php.net> wrote:
> 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.
You still haven't stated why you intend to restrict it to only one
implements/extends; I'd like to hear your reasoning.