Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84405 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5075 invoked from network); 7 Mar 2015 16:36:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Mar 2015 16:36:00 -0000 Authentication-Results: pb1.pair.com header.from=marcio.web2@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=marcio.web2@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.52 as permitted sender) X-PHP-List-Original-Sender: marcio.web2@gmail.com X-Host-Fingerprint: 209.85.215.52 mail-la0-f52.google.com Received: from [209.85.215.52] ([209.85.215.52:43759] helo=mail-la0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9D/11-29230-EE82BF45 for ; Sat, 07 Mar 2015 11:35:59 -0500 Received: by labgf13 with SMTP id gf13so38784116lab.10 for ; Sat, 07 Mar 2015 08:35:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=e/VU4AhPOKuMR6VxoVM7aTWs0pT2glXsphl/eNQPSPI=; b=za7OOd0SaKEAKtcGL0TMrRblIHm2bJdXzYPSEYH5wVFgr87qZ0c+SM3MS4Z5QV5rhm ifl1i6lDcMbW2yr8aQDuaWWLIGbwZA1ueoVbxOGRfTmpuGaB/rz0zGZuRBW/hLAktBXS J76kjlrqC71HDtlfsmefxyVJg8YmSW9f8ev+S+nOS0zIk0WNUSMx+pm1Cx03V6p3cT74 xzDkDeXYmJ33y37YYzerixBAOqVD8QbB97INShoxMBAODTwDRINXy+86YGGyGE/QpCSk Xr8ZdgFbXYPP0q8uf8zGu3+XIvO+QyOaNp7bFP5f77JyZStoTBIajvy3tXxb0fputdN6 wy1g== X-Received: by 10.152.2.193 with SMTP id 1mr17844991law.17.1425746155223; Sat, 07 Mar 2015 08:35:55 -0800 (PST) MIME-Version: 1.0 Received: by 10.152.118.193 with HTTP; Sat, 7 Mar 2015 08:35:34 -0800 (PST) Reply-To: marcio3w@gmail.com In-Reply-To: <001b01d058c9$e6983570$b3c8a050$@tutteli.ch> References: <010801d055d3$ed5a8fa0$c80faee0$@tutteli.ch> <004d01d05696$9d797410$d86c5c30$@tutteli.ch> <001b01d058c9$e6983570$b3c8a050$@tutteli.ch> Date: Sat, 7 Mar 2015 13:35:34 -0300 Message-ID: To: Robert Stoll Cc: Patrick Schaaf , Philip Sturgeon , internals Content-Type: multipart/alternative; boundary=089e013c665a1f406b0510b56507 Subject: Re: [PHP-DEV] [RFC] Anonymous Classes From: marcio.web2@gmail.com (Marcio Almada) --089e013c665a1f406b0510b56507 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, 2015-03-07 8:28 GMT-03:00 Robert Stoll : > > > -----Urspr=C3=BCngliche Nachricht----- > > Von: Patrick Schaaf [mailto:php@bof.de] > > Gesendet: Samstag, 7. M=C3=A4rz 2015 08:22 > > An: Philip Sturgeon > > Cc: internals; Robert Stoll > > Betreff: Re: [PHP-DEV] [RFC] Anonymous Classes > > > > Am 06.03.2015 20:14 schrieb "Philip Sturgeon" : > > > > > > Right, this here RFC has been drastically improved. > > > > > > https://wiki.php.net/rfc/anonymous_classes > > > > > > Anyone got any doubts or troubles at this point? > > > > Can we / could we do "extends self", "extends static", or even "extends > $someclassname" ? > > > > The first two could be handy in factory like object methods, and the > last one generally in factory methods. > > > > best regards > > Patrick > > Personally, I would go step by step. First introduce anonymous classes an= d > then extend it with features like the one described above - should be les= s > controversial. > The last construct idea described by you would introduce dynamic > inheritance to a certain degree and I am not so sure if that is really a > good idea > > Cheers, > Robert > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > That's not controversial, it seems like a basic feature we should have. As anonymous classes is a major feature, adding "extends self" and "extends static" at a later stage would only cause portability issues between different versions of PHP7. If we are going to have this, better add it now= . +1 Cheers, M=C3=A1rcio --089e013c665a1f406b0510b56507--