I really found your idea better than all. Keywork is already reserved, make sense on this context.
Em ter, 18 de ago de 2020 03:49, Aleksander Machniak <a...@alec.pl> escreveu: > On 18.08.2020 00:35, Mike Schinkel wrote: > > 1. Postpone inclusion of attributes until PHP 8.1 > > +1 > > I wonder why my suggestion (somewhere in this thread) didn't get any > attention. Is it because the ship had sailed or it's a terrible idea? > > declare( > SomeAttr, > AnotherAttr("Hello world") > ) > function someFunc() { > } > > It's almost identical to #[] or @[], but it looks like PHP and has no BC > breaks. To me it also sounds good - "declare attribute(s) [for] something". > > ps. sorry Mike for a duplicate, I pressed the wrong button. > > -- > Aleksander Machniak > Kolab Groupware Developer [https://kolab.org] > Roundcube Webmail Developer [https://roundcube.net] > ---------------------------------------------------- > PGP: 19359DC1 # Blog: https://kolabian.wordpress.com > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > >