Re: [RFC] Shorter attribute syntax

From: Date: Thu, 04 Jun 2020 20:40:07 +0000
Subject: Re: [RFC] Shorter attribute syntax
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-110379@lists.php.net to get a copy of this message
On Thu, June 4, 2020 at 3:28 PM Marcio Almada <marcio.web2@gmail.com> wrote: > I'd also prefer any attribute syntax without the bracket-like pair > of tokens. I'm just a bit confused about the RFC itself and the PR > content at this point. > > The RFC is currently proposing @@MyAttribute() and the PR > is currently implementing @:MyAttribute() as the sigil. The > first > brings a BC break and the second doesn't, being the important > difference. > > I'm inclined to @: instead of > @@. Which one will actually be > on the ballot? :D Hi Marcio, @@ is the syntax that will be voted on. The linked PR is for the original @: implementation, but as the RFC notes switching this to @@ just requires a single character to be changed in the lexer and a small grammar adjustment. If the proposal is accepted we'll submit a new PR with the updated implementation. Apologies for the confusion! Theodore

« previous php.internals (#110379) next »