Re: Proposal fo "Code-free constructors declaration"

From: Date: Wed, 23 Jan 2019 17:38:36 +0000
Subject: Re: Proposal fo "Code-free constructors declaration"
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-103810@lists.php.net to get a copy of this message
On Wed, Jan 23, 2019 at 8:43 AM Levi Morrison <levim@php.net> wrote: > > On Wed, Jan 23, 2019 at 6:57 AM Bruce Weirdan <weirdan@gmail.com> wrote: > > > > On Wed, Jan 23, 2019 at 2:32 PM Andrey O Gromov <AGromov@alfabank.ru> wrote: > > > > > Proposed syntax > > > class A($prop) extends B("BlaBla", $prop) { > > > } > > > > Would this work with anonymous classes? If so, how would the syntax look like? > > I have the same question. I don't think it would work with them, but I > could be wrong. Ah, another message confirmed it but it hit my spam folder: it does not work with anonymous classes. In my opinion that is a non-starter.

« previous php.internals (#103810) next »