Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110126 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 11964 invoked from network); 11 May 2020 11:15:40 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 11 May 2020 11:15:40 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id EE8A21804CB for ; Mon, 11 May 2020 02:52:02 -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-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) (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 ; Mon, 11 May 2020 02:52:02 -0700 (PDT) Received: by mail-lj1-f181.google.com with SMTP id h4so8735111ljg.12 for ; Mon, 11 May 2020 02:52:02 -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=hy6cNTp4/gOFD7V/zkVhS150D+5LlrYjM5A2o179dNc=; b=RMKXWAGfDQWfJeZLt/jCuOUVFBmM8qvaiyXdFYCuAOOaIJkQK5JbA90sHBexfEp79K b6ZWA+/fer21Wpv1dxv0MSru2/JHeMjNEehAAsREHd+4JrZDhUbeDF+rV6nla3pmOnBL Bf/0t1UuZsgeJl0mlHr97xpS+C2vCyWyBeKytFHx9fdYqkIm3JSXrMrDhOag9L4H5DAH 3cawBmd8OPpS6oqJWfILKCgzCJP4zGuG59At/VeI+ucS+dm+/DkonS0akAC6uzPhkxVB uMl+UphpRtRVqabPS2vzFjLL9V6OTgGVqGpQ0fuBuxCq0BUqaN+Skr/3u2pA5ZBxNzN9 OYAg== 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=hy6cNTp4/gOFD7V/zkVhS150D+5LlrYjM5A2o179dNc=; b=dvGh3RVXCp0kTrOMedPdfhsctQ+rmjDsJui+aXSvXESZEoqzDLIpK2zxiXd1nGrUOT ACglGbqp09zPmUiwfbdk0CnDMLwPIYt9i/s+uEwonY29iOj0+Jow8a4XnBIsXgmm66zG bco1Ep9lymrAjrVuGQCagQKgLrYErvADcGQOV26rzgzXqnquzgRj4K1VsIfSB9Jfnisy UQIo0RgMGG1yR92PSd2NXHoSE/pnTZAc8nq958Y1FvkoWlm7bUCMlQd+pqqkA/E0w277 +4m1tErasoCWdR6JbR50Rjvb/jrm/UIaaK3yhgkD5tLp+W8lgDvlST90eCIgezv4+5Rr HSZw== X-Gm-Message-State: AOAM531ZwbtJiNEoq23nTwGmKGxKTfv5TiiAL/WapEbYNcZLDsT4UkHB sKtP/9V1QOYmYuHjcwuy9JLY0Kg3Wz3aLByM4S9iTq1p X-Google-Smtp-Source: ABdhPJwkDlTxOSQBeXGAMCmvl7hpy8ehCbANkBQ2SFhvvKeyd0/zdGLyZ1xW4LxLXH3G3IvjYxgTw4kSZC3lrpc/oxc= X-Received: by 2002:a05:651c:54f:: with SMTP id q15mr9955057ljp.145.1589190720730; Mon, 11 May 2020 02:52:00 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 11 May 2020 11:51:44 +0200 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="00000000000063bb3205a55c4c6c" Subject: Re: [RFC] Constructor Property Promotion From: nikita.ppv@gmail.com (Nikita Popov) --00000000000063bb3205a55c4c6c 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. > > Regards, > Nikita > I know I said it a few times already, but ... I plan to start voting on this soon. There has been some additional discussion recently on alternative syntax/approaches, such as Mike's parameter blocks, and Larry's "promoted" keyword. I wasn't really convinced by either of those, so I plan to go forward with the proposal as is. Nikita --00000000000063bb3205a55c4c6c--