Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109501 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 57459 invoked from network); 2 Apr 2020 01:08:06 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 2 Apr 2020 01:08:06 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 76785180088 for ; Wed, 1 Apr 2020 16:34:38 -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.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS6830 84.116.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from vie01a-dmta-pe06-2.mx.upcmail.net (vie01a-dmta-pe06-2.mx.upcmail.net [84.116.36.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 1 Apr 2020 16:34:37 -0700 (PDT) Received: from [172.31.216.235] (helo=vie01a-pemc-psmtp-pe12.mail.upcmail.net) by vie01a-dmta-pe06.mx.upcmail.net with esmtp (Exim 4.92) (envelope-from ) id 1jJmsW-0009WU-0M for internals@lists.php.net; Thu, 02 Apr 2020 01:34:36 +0200 Received: from mail02.home ([213.47.8.56]) by vie01a-pemc-psmtp-pe12.mail.upcmail.net with ESMTP id JmrXjNGgv6Jy6JmrYjfKWc; Thu, 02 Apr 2020 01:33:36 +0200 X-Env-Mailfrom: markus@fischer.name X-Env-Rcptto: internals@lists.php.net X-SourceIP: 213.47.8.56 X-CNFS-Analysis: v=2.3 cv=GKl27dFK c=1 sm=1 tr=0 a=UsP8JIz990cEySE/ILGzbQ==:117 a=UsP8JIz990cEySE/ILGzbQ==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=IkcTkHD0fZMA:10 a=MKtGQD3n3ToA:10 a=1oJP67jkp3AA:10 a=cl8xLZFz6L8A:10 a=2EALvoLjsrEA:10 a=ZZnuYtJkoWoA:10 a=67BIL_jfAAAA:8 a=T21SbIa3AAAA:8 a=reksR9Imi9BHBsU-iDkA:9 a=QEXdDO2ut3YA:10 a=SnCPDuWYnhHfdy9Ed-Bx:22 Received: from [192.168.1.241] by mail02.home with esmtp (Exim 4.72) (envelope-from ) id 1jJmrW-0003wG-Hc for internals@lists.php.net; Thu, 02 Apr 2020 01:33:35 +0200 To: internals@lists.php.net References: Message-ID: <5cb01a17-ff6d-b072-30d3-6a891dcc5434@fischer.name> Date: Thu, 2 Apr 2020 01:33:28 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam_report: Spam detection software, running on the system "scanner01.home", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, On 2020-03-26 14:30, Nikita Popov wrote: > 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. [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: php.net] -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-CMAE-Envelope: MS4wfKIddmugTPB2e8big10AC0cCk+gesYtC1GcEWsP95pNiww0or9oO/wFA9ZEbqckk92qxi7OsgRarp55/+L+rR+ISj6ybIf5cJx28Q/u2w+Vjg0jNSA11 m7vYgms70lJKRfa5Lc5ScRvebzxxaqyK9IpDdHqNfbbQgH8r4Za83SP6 Subject: Re: [PHP-DEV] [RFC] Constructor Property Promotion From: markus@fischer.name (Markus Fischer) Hi, On 2020-03-26 14:30, Nikita Popov wrote: > 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. The amount of boilerplate this would cut down for e.g. projects using DI and DTOs is unfathomable. How does this work together with reflection? Will reflection see the properties _and_ the extended constructor definitions? thanks, - Markus