Another doubt: in relation to the PR (
https://github.com/beberlei/php-src/pull/2) it is called as "attributes",
but seems better keep as "annotations". The Doctrine annotations is based
in PHPDoc, are not? And it is basically the same thing, and annotations
term is used in other languages.

And too, could annotators have some additional features like Typescript
decorators?


Atenciosamente,
David Rodrigues


Em seg., 9 de mar. de 2020 às 16:35, Aleksander Machniak <a...@alec.pl>
escreveu:

> 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
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Reply via email to