Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109335 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 13235 invoked from network); 26 Mar 2020 15:06:12 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 26 Mar 2020 15:06:12 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 76BC91804C6 for ; Thu, 26 Mar 2020 06:31:05 -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-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) (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 ; Thu, 26 Mar 2020 06:31:04 -0700 (PDT) Received: by mail-lf1-f47.google.com with SMTP id v4so4778472lfo.12 for ; Thu, 26 Mar 2020 06:31:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=xrRZoBkPFn2qc0tjx188N2KAX/+mxzVGC288VA2tTKM=; b=Lt9If0jGHD79zPp2q82eQqejYt6UQjY0aNzWgWg0cHyQ7nU9jQjnexOevGJ3e/ATiC NPiB6oeDFNeYD/wSCpjPakfo3vZmm9o7L+S5yqCNdtMSFNpXyPis/DMoC8TaXhtKxN6Z zl1Xi9IJX8VoqQ2EmOAiX4h26ig8ZB5zIDUUpVpUMwyNi7Iw+qSA/KXn6hG7YrxYdicu jNQApoUAkv5y3RI+QQRa703b+WHI/OkfX2y/oTdrO2lg3vOlztW4sxRBVi41Jh70UUE+ LwWcwqaoEC198PoT+pAUwIL9hGVySHUXV1RQynZuLh0tq52ulhXJ0LOU5aXR5saY2pKQ cCzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=xrRZoBkPFn2qc0tjx188N2KAX/+mxzVGC288VA2tTKM=; b=rcIjSTHrXFXTAA/bA/J09rNPH7QEdcU/sSfg8OmAzBKNuqslm9fVcl3gAAXACLOfil Hw7ZZvgTLvXJxO56Nze2WpdDYDhejDjkc9EhuEbnp078iGO5rynvJ+V5KHoNoisyJbjj 5jv/mVMXoZXd/bQL7JyDtNuejtO7S53R8DsFEWBcll2D/xItj4TJ48cD16jCXJfB3oK1 sUqugzaeAXG3Bs1MqOGggGJrVNLuV5EJ7spnFE3XbLeGmQf7orPOu1TFMOVcXKL2+OGA bz9FpSLsJmTnQupgZEgeyjLhH6OlQUq+iBZEKSNGd0Vr+UxZq8wvilWU2LuAz90xIiBZ dR2Q== X-Gm-Message-State: ANhLgQ3fKdhe3war1C9c8C27qD5J2In+uLmrUbNfm/ikH+v38/SQz8T3 cbCQAGUSB05jnL9Lo5oL9fCkuz4n6N2+TsLQZ7A7Xi6BGTU= X-Google-Smtp-Source: ADFU+vtYbco705cjxcYv5g4bU2Jn3AiVESnaQS40dpZGog4Y6YgSeycCUejKRnpoCE526JZKQhEDiANwgRzgOGBMjiA= X-Received: by 2002:ac2:4352:: with SMTP id o18mr5793136lfl.81.1585229462114; Thu, 26 Mar 2020 06:31:02 -0700 (PDT) MIME-Version: 1.0 Date: Thu, 26 Mar 2020 14:30:46 +0100 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="000000000000fa15a705a1c1fe01" Subject: [RFC] Constructor Property Promotion From: nikita.ppv@gmail.com (Nikita Popov) --000000000000fa15a705a1c1fe01 Content-Type: text/plain; charset="UTF-8" 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 --000000000000fa15a705a1c1fe01--