Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84449 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66183 invoked from network); 9 Mar 2015 00:28:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Mar 2015 00:28:08 -0000 Authentication-Results: pb1.pair.com header.from=pjsturgeon@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pjsturgeon@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.46 as permitted sender) X-PHP-List-Original-Sender: pjsturgeon@gmail.com X-Host-Fingerprint: 209.85.215.46 mail-la0-f46.google.com Received: from [209.85.215.46] ([209.85.215.46:43625] helo=mail-la0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4D/D2-44738-619ECF45 for ; Sun, 08 Mar 2015 19:28:07 -0500 Received: by labgf13 with SMTP id gf13so43110753lab.10 for ; Sun, 08 Mar 2015 17:28:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=xGIS2B/1miBbTsYwWoDHmrKu8BaDKTcmo+KYVBRjnOE=; b=sDdFBQfEanHbhonv9yuMkOeZkn+kEsqLjvCW3eZqMNYg8GPQqqCZK9G9wmbL6vBPIu qnYW/L1jp2U8yu7gq4i/dYwJXOhp+fLZQY96bzoRbfjzxJxt6AJVV6S36NrkP2qTA9Ux K0C25OMq1dC5/cqGTGnLj3uAT4CMhvCNPJn9/qjuZWrUYJFKd0J6NoIMdteCfvQJuTI2 8HEX0p+SidukV8d4xs4GUcXY1uGwscSX1dT04A/AZBc9SzUd/gbjFSz0GY/a+Fto+Vcc C8a16nVi70rb/KcUQgTC9d6yHuyv8DByqkzaTCfbla16bOrCd8weObIGGVSKMTjUoipN RebA== MIME-Version: 1.0 X-Received: by 10.112.73.65 with SMTP id j1mr22845802lbv.87.1425860883604; Sun, 08 Mar 2015 17:28:03 -0700 (PDT) Received: by 10.114.26.34 with HTTP; Sun, 8 Mar 2015 17:28:03 -0700 (PDT) In-Reply-To: References: <010801d055d3$ed5a8fa0$c80faee0$@tutteli.ch> <004d01d05696$9d797410$d86c5c30$@tutteli.ch> Date: Sun, 8 Mar 2015 20:28:03 -0400 Message-ID: To: Patrick Schaaf Cc: internals , Robert Stoll Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Anonymous Classes From: pjsturgeon@gmail.com (Philip Sturgeon) Patrick, On Sat, Mar 7, 2015 at 2:22 AM, Patrick Schaaf wrote: > > 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 Could you maybe make some full examples? I'm not visualising the use case. It sounds like something which would be better off as another RFC as its extra features. This is just making anonymous definitions possible, not trying to take on a whole bunch of different features in one go.