Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75178 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4703 invoked from network); 2 Jul 2014 21:07:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jul 2014 21:07:13 -0000 Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.49 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.219.49 mail-oa0-f49.google.com Received: from [209.85.219.49] ([209.85.219.49:36657] helo=mail-oa0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 42/FA-47713-F7474B35 for ; Wed, 02 Jul 2014 17:07:12 -0400 Received: by mail-oa0-f49.google.com with SMTP id i7so12717043oag.8 for ; Wed, 02 Jul 2014 14:07:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=Ca9BD0QQafn2Q0QlZlPSgDq0ntr8vOTSr/NQlrAu5W4=; b=kYL58B7/zzf452YsL+H7KK51dgY6qXhWtVOKb32wBRlTy/kZHMJoCUasT9n1xhpe2Z 1zYM2+fc/pHxnhm+f5SvWiLHYx7bJkGHmTD3GCcK5f8zyJgyD7H/CAi1MeqOOyveyE1h RoihRPUUYTJIcShHQ4TAad6Vng8QDORZ7Nq6v2gsukaQFwqMABb85+5D3ue95YqSpkjk WFzSqrpMCA6ssFNSQVAlYn3pa7nn35RrXtCPURc4snfeca4xeq2vZeMwNN/8tKjz/wbD bLbVZ0gLcHqTVtbd42haNFroKr5iv/91HG0NqFRCUvs3p2gAxIvYy83LyLYM1N2AGAqi Pz0g== MIME-Version: 1.0 X-Received: by 10.182.20.241 with SMTP id q17mr242296obe.83.1404335229017; Wed, 02 Jul 2014 14:07:09 -0700 (PDT) Sender: morrison.levi@gmail.com Received: by 10.76.77.100 with HTTP; Wed, 2 Jul 2014 14:07:08 -0700 (PDT) In-Reply-To: <53B46FA0.1080704@php.net> References: <53AEC4F0.8040307@php.net> <53AF0F14.5030703@gmail.com> <53B46FA0.1080704@php.net> Date: Wed, 2 Jul 2014 15:07:08 -0600 X-Google-Sender-Auth: b_WSEY-kvA4t9m4VLOXZSrrTPD4 Message-ID: To: Sebastian Bergmann Cc: internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Revisiting Anonymous Classes From: levim@php.net (Levi Morrison) On Wed, Jul 2, 2014 at 2:46 PM, Sebastian Bergmann 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.