Re: [RFC] [Discussion] Clone with
| From: | Tim Düsterhus | Date: | Mon, 29 May 2023 19:33:25 +0000 |
| Subject: | Re: [RFC] [Discussion] Clone with | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-120437@lists.php.net to get a copy of this message | ||
Hi
On 5/29/23 13:47, Michał Marcin Brzuchalski wrote:
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.I expect any IDE or SA tool worth its salt to be able to understand that a string-literal is … a string-literal and treat it as constant. Whether there are quotes around that literal or not should not make a meaningful difference for automated processing. I'm fine with the proposed syntax [1], but agree that "clone with expressions" would be useful to have even in the initial version. Best regards Tim Düsterhus [1] It's consistent with existing syntax and that is important.