Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120437 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 64503 invoked from network); 29 May 2023 19:33:31 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 29 May 2023 19:33:31 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8EAD3180538 for ; Mon, 29 May 2023 12:33:28 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS24940 176.9.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 29 May 2023 12:33:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1685388806; bh=1zzVu6SWGfTHxs8ABm521Ao4cg1YENqxsYxvWaBZhwk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=cs8E4wSYCK4rtuD9BE4Aq26LHHippE5BEnp3GX9VeUeZ2VS/pxZSo+4szVAwd6dpp lHlva/pCUzSRvG0tCS1fstXrDgYpoILOcp8L8wZynC/CN19S7tilavXccsc9vU7HLP EZErJD50bWJmDmadd27u3Ed2smMesVopZ+HK+SE0MqbIpcsva1X/ENlYn9Ba6UJ023 hXfJBfLt5wg0fNEo0X6G5/bJnf0ArHaGqYgu25Et/V4cA08zt28UXcVJoh0dhp0a8/ sWj+RlGuRK8oJBiGSfC+9JZjEuTZKwL5HxBM0zBww5E8mEEUjx+44hhECrnUG2FqYD IIHy4vfHnrXcg== Message-ID: <2e58f48e-bb39-a759-417c-1077c8695873@bastelstu.be> Date: Mon, 29 May 2023 21:33:25 +0200 MIME-Version: 1.0 Content-Language: en-US To: =?UTF-8?Q?Micha=c5=82_Marcin_Brzuchalski?= , =?UTF-8?B?TcOhdMOpIEtvY3Npcw==?= Cc: php internals References: <799ae864-6e25-4196-a5ce-0d74600a8378@app.fastmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [RFC] [Discussion] Clone with From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=c3=bcsterhus?=) 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.