Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109059 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 50671 invoked from network); 16 Mar 2020 16:04:03 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 16 Mar 2020 16:04:03 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9DB521804E0 for ; Mon, 16 Mar 2020 07:26:29 -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=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS1836 195.49.0.0/17 X-Spam-Virus: No X-Envelope-From: Received: from darkcity.gna.ch (darkcity.gna.ch [195.49.47.11]) (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 ; Mon, 16 Mar 2020 07:26:28 -0700 (PDT) Received: from flatter.home (unknown [IPv6:2a02:120b:c3f7:5090:a0de:831d:8f86:f946]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by darkcity.gna.ch (Postfix) with ESMTPSA id 5616C6C151F; Mon, 16 Mar 2020 15:26:26 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) In-Reply-To: Date: Mon, 16 Mar 2020 15:26:25 +0100 Cc: php internals Content-Transfer-Encoding: quoted-printable Message-ID: <1C074893-F260-462C-8D73-5DF764A56DE0@cschneid.com> References: To: Jakob Givoni X-Mailer: Apple Mail (2.3608.60.0.2.5) Subject: Re: [PHP-DEV] [RFC] [DISCUSSION] Compact Object Property Assignment From: cschneid@cschneid.com (Christian Schneider) Am 16.03.2020 um 12:48 schrieb Jakob Givoni : > I'm opening up my new RFC for discussion: >=20 > https://wiki.php.net/rfc/compact-object-property-assignment > - A pragmatic approach to object literals >=20 > Let me know what you think! Sorry to say but the syntax look very un-PHP-like. [] suggests an array but then is uses literals and =3D instead of = 'strings'/$vars and =3D> which looks wrong to my PHP eye. Apart from that it feels weird that you have an object where you want to = initialise so many properties manually instead of through some sort of = constructor. Is it more of a record than an object? I'm not sure if I that is a pattern I would want to encourage. My $.02, - Chris