Re: [RFC] Shorter Attribute Syntax Change RFC 0.2

From: Date: Thu, 06 Aug 2020 06:40:48 +0000
Subject: Re: [RFC] Shorter Attribute Syntax Change RFC 0.2
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-111346@lists.php.net to get a copy of this message
On Wed, 5 Aug 2020, Rowan Tommins wrote: > On Wed, 5 Aug 2020 at 13:20, Benjamin Eberlei <kontakt@beberlei.de> 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

« previous php.internals (#111346) next »