Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125222 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 4ABD21A00BD for ; Sun, 25 Aug 2024 16:21:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1724602982; bh=UqNNwcjy232yAl4FC9NsZgudwD0J15u56iwn5WWw/aI=; h=Date:Subject:To:References:From:In-Reply-To:From; b=MbM/X2oNihhJD09gTzzOyfUpCncOXYWPQfUwufB2jlGSJLoEAOQhvAV3EI4CAdIgi luIcqmFugPIVePNvx+X/jnyf00Sv0f1ZUJFyHTKJ47M1POtW2RYMatGaFDMSnRF/eh GqgKBsvsTepHYcJT6sIWBN4t5UY+83bO5TlRn+2dPYvNqnaESnxl4a77zidy9grNGS uFcu0WUYvHV9VSFk0WOo+9V5RXnaT3N8yPORLnQgC8XuJZyygrlV6GkdqZSX/twkGx F15pvE2S5oJpgFPmIYdBzgf5LqTAIN8fGkuv4LxjxOs3Y8WIRc2/Wp6nwvb34Mj9RB DcbiSW2Qub7eQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0660C180086 for ; Sun, 25 Aug 2024 16:23:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fout1-smtp.messagingengine.com (fout1-smtp.messagingengine.com [103.168.172.144]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 25 Aug 2024 16:22:59 +0000 (UTC) Received: from phl-compute-05.internal (phl-compute-05.nyi.internal [10.202.2.45]) by mailfout.nyi.internal (Postfix) with ESMTP id DC3C7138DA78 for ; Sun, 25 Aug 2024 12:21:06 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Sun, 25 Aug 2024 12:21:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rwec.co.uk; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1724602866; x=1724689266; bh=gHIlIpVjH2jkOZqc+ZQxJgsxghT62HT6vGMAzQVpDBs=; b= A/GY0pRydwF0t6MgC6cOXTOH4eYXdzLhD3oS/kWEBQ374U6NBOxNFCTYR/cleW5T IOGzCmyu9JnRIMqCYOb84SalTT+Xf97UILMalHs4032uh8zJA6tRRNc5Ob4kKEu5 dLZ2zO7abn31ElHZxKTcynFquWwkyg1hiny8fGpzjcqIYSKIR7o31FM1Szb+2Wx1 0WO15sS1qPS4pkDfgXXS+fnmUA38zLEPtA0Ji9Gy5UhDqRuHIDZEWI/DBixo6Q6O VcYXkkQGi4mzEebYBPPYjx2LDgQCj1Vrlw4tGaCJE6Z5ULQidiqqK1Jjmo+8ZjD4 ZpPmdlqiFnVvtOgnZzKQRg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1724602866; x= 1724689266; bh=gHIlIpVjH2jkOZqc+ZQxJgsxghT62HT6vGMAzQVpDBs=; b=C HZN++eQCsda/2w8wig004ND7kpNDs7v9OOm49oq4cEUSJULaSOWiULPjKov877P9 xL6vlm76x3syz7sYZdjNutkuxE3WePOgeaT+sQbVfx7tOY82hVwPjk0P4us4IFsL bU21VeRu9U8TPgvRU/xGwCqppRt6iA/+gnjy2VCemEN4LAUZJk0qOKpkW4Lnzghw 5juNZJrj1k0wR8/RBN35AE8HEvTEc1dHsYIPSullXIK2FFpvH6yZ9VFhSU4XvU1R ndYAvpmtKVVW4Or0lrFESNnoSZGB2ol3RH0jtvpdqV1CHFV+IQ0D9+2rE+bqrAwl RG2cyWGIV2GcVZa738hrQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddruddviedgleekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfg fuvfhfhfgjtgfgsehtkeertddtvdejnecuhfhrohhmpedftfhofigrnhcuvfhomhhmihhn shculgfkoffuohfrngdfuceoihhmshhophdrphhhphesrhifvggtrdgtohdruhhkqeenuc ggtffrrghtthgvrhhnpeegtddviedvkeehheeludeuffekkeeutdeuudehleegieetfffh ueeutdekvdeuveenucffohhmrghinhepvgigthgvrhhnrghlshdrihhonecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepihhmshhophdrphhhphes rhifvggtrdgtohdruhhkpdhnsggprhgtphhtthhopedupdhmohguvgepshhmthhpohhuth dprhgtphhtthhopehinhhtvghrnhgrlhhssehlihhsthhsrdhphhhprdhnvght X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 25 Aug 2024 12:21:06 -0400 (EDT) Message-ID: Date: Sun, 25 Aug 2024 17:21:01 +0100 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] [RFC] Default expression To: internals@lists.php.net References: <0c8ed5d6-5507-4c41-8d7f-05d14ba8aa4c@scriptfusion.com> <0cfd3a28-3cb0-4478-85fb-cf086d8e5c66@app.fastmail.com> <4dad8898-b6d3-4b1b-aa7c-bd8385857f11@app.fastmail.com> Content-Language: en-GB In-Reply-To: <4dad8898-b6d3-4b1b-aa7c-bd8385857f11@app.fastmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: imsop.php@rwec.co.uk ("Rowan Tommins [IMSoP]") On 25/08/2024 16:54, Rob Landers wrote: > Hi Rowan, you went through a lot of trouble to write this out, and the > reasoning makes sense to me. However, all the nonsensical things you > say shouldn’t be allowed are already perfectly allowed today, you just > have to type a bunch of boilerplate reflection code. There is no new > behavior here, just new syntax. Firstly, your response to John was essentially "please give more details" [https://externals.io/message/125183#125214], and your response to me is "thanks for the details, but I'm not going to engage with them". That's a bit frustrating. Secondly, I don't think "it's possible with half a dozen lines of reflection, so it's fine for it to be a first-class feature of the language syntax" is a strong argument. The Reflection API is a bit like the Advanced Settings panel in a piece of software, it comes with a big "Proceed with Caution" warning. You only move something from that Advanced Settings panel to the main UI when it's going to be commonly used, and generally safe to use. I don't think allowing arbitrary operations on a value that's declared as the default of some other function passes that test. Regards, -- Rowan Tommins [IMSoP]