My suggestion is the tilde (~). Currently is used only as the bitwise NOT
operator, but in this context seems to not have any problem.
~ Attribute1(~1)
~ Attribute2(...)
function withAttribute() { ... }
Or then we could use another more detailed syntax:
<-- Attribute(...), ... -->
:: Attribute(...), ...
Or even create a new keyword like:
with Attribute(...), ...
function withAttribute() { ... }
And in last case, just use nothing but the attribute itself as a prefix:
Attribute(...) function withAttribute() {...}
Atenciosamente,
David Rodrigues
Em qua., 22 de jul. de 2020 às 10:58, Côme Chilliet <
[email protected]> escreveu:
> Le Wed, 22 Jul 2020 13:00:10 +0100 (BST),
> Derick Rethans <[email protected]> a écrit :
> > Please, let's do the sensible and use the Rusty #[...] syntax.
>
> This syntax is the one I liked the less in the proposed choices, given # is
> used for comments.
>
> Wouldn’t #[] cause more parsing issues than @@?
>
> What would be the rule, it’d be illegal to start a comment content with
> '['?
>
> Côme
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: https://www.php.net/unsub.php
>
>