Re: [RFC] Attributes v2

From: Date: Mon, 09 Mar 2020 19:35:10 +0000
Subject: Re: [RFC] Attributes v2
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-108921@lists.php.net to get a copy of this message
On 09.03.2020 15:42, Benjamin Eberlei wrote: > The RFC is at https://wiki.php.net/rfc/attributes_v2 Would it make sense to support this: <<WithoutArgument>> <<SingleArgument(0)>> <<FewArguments('Hello', 'World')>> function foo() {} in this form: << WithoutArgument; // comments allowed here SingleArgument(0); FewArguments('Hello', 'World'); >> function foo() {} or if there's not many attributes, in the same line: <<WithoutArgument; SingleArgument(0)>> It may look better for the short version, but I'm not so sure about the long version. -- Aleksander Machniak Kolab Groupware Developer [https://kolab.org] Roundcube Webmail Developer [https://roundcube.net] ---------------------------------------------------- PGP: 19359DC1 # Blog: https://kolabian.wordpress.com

« previous php.internals (#108921) next »