Re: [PHP-DEV] [RFC] [Discussion] Shorter Attribute Syntax Change

  111254
July 29, 2020 19:08 theodorejb@outlook.com (Theodore Brown)
On Tue, July 28, 2020 at 6:09 PM Mark Randall <marandall@php.net> wrote:

> On 28/07/2020 22:55, Theodore Brown wrote: > > I appreciate the examples. I think there are good reasons not to > > implement these kind of extensions, at least in this form. I'll reply > > to each example below. > > > The problem is your argument comes from a position of... because you > don't like those examples, we shouldn't make accomodation for them or > anything like them in future. > > Adopting such extensions is a matter for a future RFC, and not for > preemptively throwing a spanner in the works.
Hi Mark, Future RFCs are as free as they've always been to propose new additions and extensions. Do you think we need to choose a more verbose syntax for every new feature in PHP just to make sure it accommodates keyword flags on the off-chance we may want to add them later? E.g. should we re-vote on the named arguments RFC now and replace the syntax with something designed around adding flags to each argument (e.g. so that function calls could support both an old and new parameter names and be compatible with multiple library versions)? There's good reason to believe that such added complexity is not the best approach, and is very unlikely to be accepted. Preemptively implementing a more verbose syntax with a larger BC break, on the basis of hypothetical extensions which haven't been needed in any other language isn't a good approach to language design, in my view. Anyway, apart from the fact that feature freeze is less than a week away, it seems like voting again to use #[] instead of @@ would violate the voting rules. [1] It hasn't been six months since the last vote, and this proposal is identical to the one declined in the previous RFC. Best regards, Theodore [1]: https://wiki.php.net/rfc/voting#resurrecting_rejected_proposals
  111255
July 29, 2020 19:28 michal.brzuchalski@gmail.com (=?UTF-8?Q?Micha=C5=82_Marcin_Brzuchalski?=)
Hi Theodore,

śr., 29 lip 2020 o 21:08 Theodore Brown <theodorejb@outlook.com> napisał(a):

> ... > Anyway, apart from the fact that feature freeze is less than a week > away, it seems like voting again to use #[] instead of @@ would > violate the voting rules. [1] It hasn't been six months since the > last vote, and this proposal is identical to the one declined in the > previous RFC. >
Which declined/rejected RFC you're referring to? I can't find it on the list[1] but would for sure like to read it again. [1] https://wiki.php.net/rfc#declined Cheers, Michał Marcin Brzuchalski