Re: [RFC] Shorter attribute syntax

From: Date: Thu, 04 Jun 2020 20:28:07 +0000
Subject: Re: [RFC] Shorter attribute syntax
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-110378@lists.php.net to get a copy of this message
Hello! > > Hi internals, > > I discussed the syntax for attributes further with Benjamin, Martin, > and several other internals developers off-list, and with their > feedback completed an RFC proposing to use the shorter @@ > syntax > instead of <<>> for attributes in PHP 8. 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 Thanks, Márcio Almada

« previous php.internals (#110378) next »