Hi Theodore,

wt., 16 cze 2020 o 18:57 Theodore Brown <theodor...@outlook.com> napisał(a):

> On Wed, June 3, 2020 at 6:54 PM Theodore Brown wrote:
>
> > Hi internals,
> >
> > I discussed the syntax for attributes further with Benjamin, Martin,
> > and several other internals developers off-list, and with their
> > feedback completed an RFC proposing to use the shorter `@@` syntax
> > instead of `<<>>` for attributes in PHP 8.
> >
> > https://wiki.php.net/rfc/shorter_attribute_syntax
> >
> > The goal is not to bikeshed over subjective syntax preferences,
> > but to address several concrete shortcomings related to verbosity,
> > nested attributes, confusion with generics and other tokens, and
> > dissimilarity to other common languages.
>

Thanks for your work.

I'm gonna take a vote on Rust syntax #[Attr] cause it's more than similar
it's a copy of syntax which
in Rust has other few extensions which we might consider in a future like
for instance, a file scoped annotations.

It has the benefit of reusing the same syntax as another language and
allows the code works with both PHP 7 and PHP 8
which IMO is a huge benefit for a smooth migration.

Cheers,
Michał Marcin Brzuchalski

Reply via email to