Re: [VOTE] Shorter Attribute Syntax Change

From: Date: Tue, 11 Aug 2020 10:10:13 +0000
Subject: Re: [VOTE] Shorter Attribute Syntax Change
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-111450@lists.php.net to get a copy of this message
Hi, Quick question. What is the expected behaviour of: @[Bar()]; class Foo {} That would appear to be valid code and for the difference of a single ; does wildly different things, assuming there is a function Bar defined somewhere. (and only by the fact that @ doesn't suppress fatal errors does it not cause utter confusion if Bar isn't defined) Regards, Chris On Mon, 10 Aug 2020 at 09:41, Derick Rethans <derick@php.net> wrote: > Hi, > > I've just opened the vote to make sure we don't make a terrible mistake > with using the @@ syntax for attributes: > > https://wiki.php.net/rfc/shorter_attribute_syntax_change#voting > > The first vote is a vote to say that you have an opinion about attribute > syntax. Make sure to read up on the discussion on the mailinglist if you > haven't done so yet. > > The second vote is an STV vote. > > In STV you SHOULD rank *all* choices, but don't pick the same one more > than once, as that will invalidate your vote. > > Please have a objective look at the table > (https://wiki.php.net/rfc/shorter_attribute_syntax_change#proposal) and > don't just go by asthetics. > > The vote ends August 23, 24:00 UTC. > > 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 | J|½4¦º´m>¢¢º¡ > Ÿhttps://xdebug.org | https://dram.io > twitter: @derickr and @xdebug > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > >

« previous php.internals (#111450) next »