Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109622 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 94452 invoked from network); 14 Apr 2020 14:33:11 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 14 Apr 2020 14:33:11 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id AD5061804F8 for ; Tue, 14 Apr 2020 06:02:51 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 14 Apr 2020 06:02:51 -0700 (PDT) Received: by mail-lf1-f53.google.com with SMTP id k28so9287118lfe.10 for ; Tue, 14 Apr 2020 06:02:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=/ScowLJ81qKSHrw9CkzI+p4q9dO7Zi4hKgQDu6950IM=; b=LGU7/AmAIVGWxe1aZNXz8lS2lSBHCO1oaCdbY+vUdDgMnJrTnMnsKevslUNnvvatRp Li3lnw81HPl6jC4KcnEizmS/zoL5gTVsDMauHALmQB8gU3dqpL74vy7py4tpZ3PyELSp wDxg94vOznGzVR71fFKtPow/qIC7igynS01IInXxHA8HFj0l+3ezNqZtXAuYEGVioNi7 gyTNm94kkTHd3Xwy61sqhAAhOeDJ7xs08/0p8xO5w83LdS1z+2Wl7fgsl7cPpx5Fltdx oGnpCex2ZvhP/AS+WhAUaTsyThOkWhwZ8R+vV+RUd9stNg83eY26vF5+GXZPL+IjhmOF nRmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=/ScowLJ81qKSHrw9CkzI+p4q9dO7Zi4hKgQDu6950IM=; b=cUsaEAERDf5gtxaKV7uFcdbWn8amD6jrCTf9DHWs4EkQc5eEtq7oNwHTor6qclw6K2 +e/68vrKQPwLf5+QPjSDIQUNYwhz1zyuQsCiJNA+4xZety6qmHDN8Spn31cfzjTs5D5Y 5qOnPuGqWNwObHQakQIabZr2n6EWP8EixgJsJdYbpjedxluaLbRhTy3ZlW8993Z3u9lw 0Qu1JudIeSAYmNAMc16/7eEiNlUOd6sseFZdEfskFAxPp6FBepcTRH9+IEcDXkt7dtVc V2I9m+v5rQj1x32VtS1B4iZ0GfKQYPB6NlH+vEH+HSqINxMucoeDWO/ax6K802w5ypP3 2NdA== X-Gm-Message-State: AGi0PubcdUdRzTrbywezV0TBy/+lDGpPM8gsAjvNr3gIeuf2FFPbBhV/ KkxigIG3KfIPDLyNyTM8LzEWsFvEdimyUy7sMiQ9Yp9F/Ls= X-Google-Smtp-Source: APiQypLg7bRZHUXWBp4cDkLeCsQQWuQZumBTC/jea4oe5OsluKiIVANEpRj6zaL/zt7hP5YIf3ODpWoLd4oMRsKqTHA= X-Received: by 2002:a05:6512:54c:: with SMTP id h12mr13430530lfl.120.1586869367764; Tue, 14 Apr 2020 06:02:47 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 14 Apr 2020 15:02:31 +0200 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="000000000000f87b9805a33fd0e9" Subject: Re: [RFC] Constructor Property Promotion From: nikita.ppv@gmail.com (Nikita Popov) --000000000000f87b9805a33fd0e9 Content-Type: text/plain; charset="UTF-8" On Thu, Mar 26, 2020 at 2:30 PM Nikita Popov wrote: > Hi internals, > > I would like to submit the following RFC for your consideration: > https://wiki.php.net/rfc/constructor_promotion > > This is based on one off the suggestions made in > https://externals.io/message/109220, and some existing discussion on the > topic can be found in that thread. > > The primary motivation for this feature is to close the currently rather > wide gap between the use of ad-hoc array structures, and the use of > well-defined and type-safe value objects. The latter is what we want people > to use, but the former is, unfortunately, what is *easy* to use. > As the reception has been positive, I plan to open voting on this proposal soon. Please tell me if you have further concerns or the RFC needs additional clarification. Regards, Nikita --000000000000f87b9805a33fd0e9--