Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111220 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 78272 invoked from network); 28 Jul 2020 16:17:50 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 28 Jul 2020 16:17:50 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 294AF1804D0 for ; Tue, 28 Jul 2020 08:13: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=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from smtp-in.fusiondirectory.org (smtp-in.fusiondirectory.org [195.154.20.156]) (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 ; Tue, 28 Jul 2020 08:13:47 -0700 (PDT) Received: from smtp-in.fusiondirectory.org (localhost.localdomain [127.0.0.1]) by smtp-in.fusiondirectory.org (Proxmox) with ESMTP id 1823910138D for ; Tue, 28 Jul 2020 17:13:45 +0200 (CEST) Received: from smtp.fusiondirectory.org (imap.fusiondirectory.org [195.154.20.141]) by smtp-in.fusiondirectory.org (Proxmox) with ESMTP id 027E2101375 for ; Tue, 28 Jul 2020 17:13:45 +0200 (CEST) Received: from mcmic-probook.opensides.be (plaf.fr [89.234.140.223]) by smtp.fusiondirectory.org (Postfix) with ESMTPSA id C9DBE883F4 for ; Tue, 28 Jul 2020 17:13:44 +0200 (CEST) Date: Tue, 28 Jul 2020 17:13:43 +0200 To: internals@lists.php.net Message-ID: <20200728171343.2e40e2f6@mcmic-probook.opensides.be> In-Reply-To: References: Organization: FusionDirectory X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] [Discussion] Shorter Attribute Syntax Change From: come.chilliet@fusiondirectory.org (=?UTF-8?B?Q8O0bWU=?= Chilliet) Le Tue, 28 Jul 2020 09:46:38 -0500, Joe Ferguson a =C3=A9crit : > Hello Internals, >=20 > I've been working with Derick Rethans and others (thanks all!) on a Short= er > Attribute Syntax Change RFC which outlines reasons why the "#[]" syntax > would be preferred over the currently agreed upon "@@" syntax for Shorter > Attribute Syntax. >=20 > An important part of the research that went into this proposal demonstrat= es > how "@@" will make handling attributes more difficult for PHP_CodeSniffer > (and similar tools) and shows how the alternative "#[]" syntax is more > friendly for these tools. >=20 > You can find the RFC > https://wiki.php.net/rfc/shorter_attribute_syntax_change and I'm happy to > answer any questions as best I can. >=20 The text uses =C2=AB instead of <<, it=E2=80=99s confusing. It should be made clearer what #[ ] has over << >>, which does not cause an= y BC break. C=C3=B4me