Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111280 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 50468 invoked from network); 2 Aug 2020 16:09:19 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 2 Aug 2020 16:09:19 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CBACD1804C2 for ; Sun, 2 Aug 2020 08:06:30 -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.1 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_NEUTRAL autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from xdebug.org (xdebug.org [82.113.146.227]) by php-smtp4.php.net (Postfix) with ESMTP for ; Sun, 2 Aug 2020 08:06:30 -0700 (PDT) Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id F37FE10C137; Sun, 2 Aug 2020 16:06:28 +0100 (BST) Date: Sun, 2 Aug 2020 16:06:28 +0100 (BST) X-X-Sender: derick@singlemalt.home.derickrethans.nl To: Benjamin Eberlei cc: Joe Ferguson , PHP Developers Mailing List In-Reply-To: Message-ID: References: User-Agent: Alpine 2.23 (DEB 453 2020-06-18) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: Re: [PHP-DEV] [RFC] [Discussion] Shorter Attribute Syntax Change From: derick@php.net (Derick Rethans) On Wed, 29 Jul 2020, Benjamin Eberlei wrote: > Personally I favor #[] myself, but there has been a vote with a > substantial participation choosing @@. Overturning this democratic > outcome should require **significant** technical arguments, otherwise > this RFC would provide problematic precedent for any RFC to be > overturned by arbitrary revoting. > > The arguments the RFC brings forward don't convince me that we should > pick #[] over @@. However, one other thing just came to light where the "Shorter Syntax" RFC was unclear about: no longer supporting grouping. Changing the accepted << .. >> syntax breaks something that was accepted through "Attribute Amendments": grouping, as per https://wiki.php.net/rfc/attribute_amendments#group_statement_for_attributes The switch to @@ does now not allow for this, but we haven't spefically voted on we wanted to get rid of grouping. The Shorter Syntax RFC does talk about it in "Verbosity" (https://wiki.php.net/rfc/shorter_attribute_syntax#verbosity), but that's not a technical reason, just opinion about readability. cheers, Derick -- PHP 7.4 Release Manager Host of PHP Internals News: https://phpinternals.news Like Xdebug? Consider supporting me: https://xdebug.org/support https://derickrethans.nl | https://xdebug.org | https://dram.io twitter: @derickr and @xdebug