Re: [RFC] Shorter Attribute Syntax Change RFC 0.2

From: Date: Wed, 05 Aug 2020 13:12:50 +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-111340@lists.php.net to get a copy of this message
On Tue, 4 Aug 2020, Levi Morrison wrote: > > I agree with Theodore's points, including that this is metadata on a > > declaration, not a declaration itself. > > Is this technically true? I haven't peeked at the grammar. I suspect > it is a declaration and not an optional piece of data on a > declaration, like say public. IMO this is irrelevant anyway. An attribute isn't just a keyword like public, or int. It is *only* an attribute **because** it preceded by a specific token; this makes it not just a declaration. 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 (#111340) next »