Re: [RFC] [Discussion] Clone with
| From: | Michał Marcin Brzuchalski | Date: | Mon, 29 May 2023 11:47:55 +0000 |
| Subject: | Re: [RFC] [Discussion] Clone with | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-120426@lists.php.net to get a copy of this message | ||
Hi Máté,
pon., 29 maj 2023 o 11:18 Máté Kocsis <kocsismate90@gmail.com> napisał(a):
> Hi Everyone,
>
> In the meanwhile, I changed my proposal to use [] instead of {} after the
> "with" clause due to its better receptance.
> Additionally, I removed support for the shorthand "property assignment"
> syntax (clone $this with [property1: "foo"]) in
> favor the more powerful one where the left-hand side supports expressions
> (clone $this with ["property1" => "foo"])
> so that we have more time to decide whether the former one is really
> needed.
>
So there would be no option to vote on shorthand properties, right?
Array syntax with all properties as strings in quotes probably means no
support from IDE.
I think this is a really bad move, I'd be against it.
Cheers,
Michał Macin Brzuchalski