Re: [RFC] Shorter Attribute Syntax Change RFC 0.2

From: Date: Tue, 04 Aug 2020 14:02:55 +0000
Subject: Re: [RFC] Shorter Attribute Syntax Change RFC 0.2
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-111315@lists.php.net to get a copy of this message
On Tue, Aug 4, 2020 at 3:46 PM Derick Rethans <derick@php.net> wrote: > Hi, > > Out of Banjamin's suggestion[1], I've updated the Shorter Attribute > Syntax Change RFC to reflect that process: > > https://wiki.php.net/rfc/shorter_attribute_syntax_change > > Patches and comments welcome. > > FWIW, this has an excemption from the RM Sara as per [2]: > > > * Shorter Attribute Syntax Change > > - Joe/Derick - Please make sure this RFC moves along and reaches > > conclusion by beta3, as discussed previously. > In combination to the existing proposals we already voted one, this RFC includes a fourth option that has not been discussed before, and could be the compromise we are all looking for :-) @[Attr] combines both the with to use the familiar @ of many, and the wish to have a closing symbol/termination symbol that many others have. It does not have the downsides that Tyson found w.r.t. to #[Attr] being interpreted as comment on PHP 7, but that also means its not forward compatible like #[Attr] is. It provides a small BC break where code written as @[$foo, $bar] = baz(); or $foo = @["bar" => $baz]; will not compile on PHP 8 anymore, but that can be easily fixed by writing it with a space between @ and [. > > cheers, > Derick > > [1] https://externals.io/message/111218#111261 > [2] https://externals.io/message/111286#111286 > > -- > 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 | µ>ÈÂ÷Ő > XB©³¦Ö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 (#111315) next »