Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109344 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 50461 invoked from network); 26 Mar 2020 18:32:51 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 26 Mar 2020 18:32:51 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9456F1804B8 for ; Thu, 26 Mar 2020 09:57:48 -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,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE 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-qt1-f180.google.com (mail-qt1-f180.google.com [209.85.160.180]) (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 09:57:48 -0700 (PDT) Received: by mail-qt1-f180.google.com with SMTP id z12so5989804qtq.5 for ; Thu, 26 Mar 2020 09:57:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=benramsey.com; s=google; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=W2J4Au3uy4dq8pwd2nPoxN39rWETyibs+5t0Y/sNugI=; b=ArHqYbxVZM5T3UA8kkfHU5G5ODQgx2lS1VOm8x/YbPM59o9iHfz/uGp0YDFJIapYzC HeZDcQSUGX2gnEm0A4KrC/CAdQyL36IwWkE2/CLTZRGrn59DWtAxiLV+aFlVJk2bawEU 8pNzbhQzDgHRQyYn5lo4VrqIA4FJd7Xz2g/tUADjAEuisohYam4+cV7orBLyMD1srT0U xO/6q+7C112kdy5oaUA/XVBFv+bDRAWO+YIn/3CcqEr8M4wmC4OKmtyJbMMy3S4DLVc9 ZcM/i7Xz5N1YP9PnC3KJQ4SUsVobCfQUVJaXSM3QTzRLwWo1/hDNMnfmE49V8geVwYch +9CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=W2J4Au3uy4dq8pwd2nPoxN39rWETyibs+5t0Y/sNugI=; b=Ihdl24bShIotgIJ/CRqL7cOPCjj1We33td7haL2cOkr1x0uTrtjONWfUDYP7T2a0Qs CYZkWA2i/QRW3WkPxuQUF4HnmE8120IrnbUy6F3tkkNoVvd+gNHx+3zAdZdxbRJfcLkN eLKMzs45iKgniRI+aCA/V05JRGgi3GH/TafWmok5Yv/z4FaFBQvOVOIeimt8eH14IAdi 7QVFnr+buoIHAhi3FOPxWVzBzC8OdBQA58ITU8E5XA9NbM4BtvSyM1MdFvXVWCKFjAmF ow51AzLrAL7xRnwtdV9wm25XHRxndy9ljnGJekXH7wNnu4BZtjlkDfxpollbGNUeOEKl 3shw== X-Gm-Message-State: ANhLgQ0wSfSY5j7n2r2TrcIi3GYfYkx8grm/UlfKxkygi2NdCg+jrdA/ +RkjocdtxzASg+agLg3hst6fVg== X-Google-Smtp-Source: ADFU+vugD1sw7vvDZ3ObsttMDj1PdfBu/pOkX0vsUEgtkpH8UkVQcPfuFxwH38QLJ3bVVb1SA3DGtg== X-Received: by 2002:aed:3225:: with SMTP id y34mr9271759qtd.19.1585241867417; Thu, 26 Mar 2020 09:57:47 -0700 (PDT) Received: from [10.10.42.76] (h96-61-170-50.lvrgtn.dsl.dynamic.tds.net. [96.61.170.50]) by smtp.gmail.com with ESMTPSA id g201sm1745710qke.99.2020.03.26.09.57.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Mar 2020 09:57:46 -0700 (PDT) Message-ID: Content-Type: multipart/signed; boundary="Apple-Mail=_3390D092-F15F-4B1A-8943-169E601525BB"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Date: Thu, 26 Mar 2020 11:57:45 -0500 In-Reply-To: Cc: PHP internals To: Nikita Popov References: X-Mailer: Apple Mail (2.3445.104.11) Subject: Re: [PHP-DEV] [RFC] Constructor Property Promotion From: ben@benramsey.com (Ben Ramsey) --Apple-Mail=_3390D092-F15F-4B1A-8943-169E601525BB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Mar 26, 2020, at 08:30, Nikita Popov wrote: >=20 > Hi internals, >=20 > I would like to submit the following RFC for your consideration: > https://wiki.php.net/rfc/constructor_promotion >=20 > 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. >=20 > 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. Will this cause any problems with ReflectionClass? (I=E2=80=99m assuming = not, but wanted to ask anyway.) Cheers, Ben --Apple-Mail=_3390D092-F15F-4B1A-8943-169E601525BB Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iHUEAREIAB0WIQToXQMR3fpbrPOmEOewLZeYnIwHGwUCXnzfCQAKCRCwLZeYnIwH G7auAP9KUvsLRXgITTMawOzJ70+tCrytq24/Nz7qma1L9NHnjwD/e+E4D1S2tApN eVWExCUhMfmzbkADlBLYM3HdqNjmIAc= =+8Fs -----END PGP SIGNATURE----- --Apple-Mail=_3390D092-F15F-4B1A-8943-169E601525BB--