Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111346 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 61081 invoked from network); 6 Aug 2020 07:42:44 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 6 Aug 2020 07:42:44 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 762141804D1 for ; Wed, 5 Aug 2020 23:40:50 -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 ; Wed, 5 Aug 2020 23:40:49 -0700 (PDT) Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id C301210C08F; Thu, 6 Aug 2020 07:40:48 +0100 (BST) Date: Thu, 6 Aug 2020 07:40:48 +0100 (BST) X-X-Sender: derick@singlemalt.home.derickrethans.nl To: Rowan Tommins cc: 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] Shorter Attribute Syntax Change RFC 0.2 From: derick@php.net (Derick Rethans) On Wed, 5 Aug 2020, Rowan Tommins wrote: > On Wed, 5 Aug 2020 at 13:20, Benjamin Eberlei wrote: > > > It looks nice for a simple attribute like @@Jit, or for a one > > without arguments like the used @@Deprecated, but as soon as there > > are more than one, and they each get arguments, enclosing them has > > its own benefits over them just standing for themselves. > > The confusing thing about this argument is that as soon as they have > arguments, attributes will have an ending delimiter _whatever_ syntax > we choose, because nobody has ever proposed removing the parentheses > around the arguments. The syntax that would start it (@@) is not the same, or related to the parenthesis that follow the attribut name ( () ). They are not linked, as the ( in () is opening a 'context' and the ) in )) is closing it again. This is not the ending syntax of '@@'. 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