Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125230 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 80D271A00BD for ; Sun, 25 Aug 2024 18:14:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1724609768; bh=8xJ030k62+bidh9BjE4sEN9TzJEVAeQsJjfunUm5aH0=; h=Date:From:To:In-Reply-To:References:Subject:From; b=X38Wcm2Vn3oP87m74S/dOXk9HKvxbtMzARyGuGueMkSZE+KM30mdkaZPhbkuWMvNJ M5oWpPWWJXOfxq5TeWxLohWXkbQxNZmYgfI/epz2R/OUGkDZpvVy1IS/OxeLLBthBy SNJZgLcJ4cfQ35Eh4Rj4VJ8L4u0CCDtdD4xeaxTcceWSL0xPIM2MCqPYjei7YJmNky SgT3+ihNfmOGRFEx83iakcRhszhU4v6c8uy1SAoUYQ/5QLI7JMihbKXHJ0WcKZvCP8 sAm5OtjbGa2jPRtf8pRGDjLZ+387X/zUh/kYqfcx1/53nMLkBHvCKBIJuXA7JndXPe w7XUV0mgRO0kg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A576918007F for ; Sun, 25 Aug 2024 18:16:07 +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,HTML_MESSAGE, 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 fout3-smtp.messagingengine.com (fout3-smtp.messagingengine.com [103.168.172.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 25 Aug 2024 18:16:07 +0000 (UTC) Received: from phl-compute-03.internal (phl-compute-03.nyi.internal [10.202.2.43]) by mailfout.nyi.internal (Postfix) with ESMTP id 6609C138F9EB for ; Sun, 25 Aug 2024 14:14:14 -0400 (EDT) Received: from phl-imap-09 ([10.202.2.99]) by phl-compute-03.internal (MEProxy); Sun, 25 Aug 2024 14:14:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bottled.codes; h=cc: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=fm2; t=1724609654; x=1724696054; bh=8xJ030k62+ bidh9BjE4sEN9TzJEVAeQsJjfunUm5aH0=; b=o1AYxps0TauPjuds4oMPbbygvv DXHLjkgs+XfsFseG/VTn12JbSRb1EK1kkxrTksNf6ehNlMFXkt4Fy0uqsuI8jHc/ k6z7k2B2SUbGBjt8FSm/YeL2kuHlhwwqsQw0GGX9ncr5qcaK8AObQUu0MSnda325 aacukH7DohUC8y7eKO0ViNAw8i885RWQ0+kJNR6jDFwTe5MdvK8+bvW9Z/aPPXxT wkajWA7f0ehGOIm3JhNXwxrBBoCbaaVUphs2GoxLU5MAfLL/lO6duxieOkRSOqBw yNXsh+9h6hlHzaeA9wbcbCC08shhy0E/WaDDmsEg9c0BaxosDHlvh8f6CO5A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=1724609654; x=1724696054; bh=8xJ030k62+bidh9BjE4sEN9TzJEV AeQsJjfunUm5aH0=; b=cEADQKrYnW0u63rRVhnz/5TgmhzSmlhzvaKmrt9x0j9z GtB76+DHPKgQA+o8bvi7HNSf9fT3ZQI2j5KPSofGwkIimm4Q1cnK/E3OgWZG2Uoz C9WQ9/bdeKFxkrjtRjM2lUBUY55457hsb06YaOdfBPj5CiDKlGuppRKuVYxTmP8c Ve9suIhbuolLJA3806WaRH74N0qqsdTizNJSlwrW446qD5LyzuT2cS5EfVLOlQ9B 8303Ib7PDkJS5QHKQ3mXB+5KFMrxcb97niwWl++5XjNB/YonzAnDMhe8pLUBmHU7 X2pChkBD2bVCvYsLBd4ljWWB5pg6qh3BrpUPYFoNZQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddruddviedguddvudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepofggff fhvffkjghfufgtsegrtderreertdejnecuhfhrohhmpedftfhosgcunfgrnhguvghrshdf uceorhhosgessghothhtlhgvugdrtghouggvsheqnecuggftrfgrthhtvghrnhepheffud euteehiefgueeutddtueekveeikeevffffgeduvefgveffkeejfffhtdelnecuffhomhgr ihhnpegvgihtvghrnhgrlhhsrdhiohenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpehrohgssegsohhtthhlvggurdgtohguvghspdhnsggprhgt phhtthhopedupdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehinhhtvghrnhgrlh hssehlihhsthhsrdhphhhprdhnvght X-ME-Proxy: Feedback-ID: ifab94697:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 13391780065; Sun, 25 Aug 2024 14:14:14 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Sun, 25 Aug 2024 20:13:53 +0200 To: internals@lists.php.net Message-ID: In-Reply-To: References: <0c8ed5d6-5507-4c41-8d7f-05d14ba8aa4c@scriptfusion.com> <0cfd3a28-3cb0-4478-85fb-cf086d8e5c66@app.fastmail.com> <4dad8898-b6d3-4b1b-aa7c-bd8385857f11@app.fastmail.com> Subject: Re: [PHP-DEV] [RFC] Default expression Content-Type: multipart/alternative; boundary=bb4c1084afe54f1ab79169ce2f0b6414 From: rob@bottled.codes ("Rob Landers") --bb4c1084afe54f1ab79169ce2f0b6414 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Sun, Aug 25, 2024, at 18:21, Rowan Tommins [IMSoP] wrote: > On 25/08/2024 16:54, Rob Landers wrote: > > Hi Rowan, you went through a lot of trouble to write this out, and t= he=20 > > reasoning makes sense to me. However, all the nonsensical things you=20 > > say shouldn=E2=80=99t be allowed are already perfectly allowed today= , you just=20 > > have to type a bunch of boilerplate reflection code. There is no new=20 > > behavior here, just new syntax.=20 >=20 >=20 > Firstly, your response to John was essentially "please give more=20 > details" [https://externals.io/message/125183#125214], and your respon= se=20 > to me is "thanks for the details, but I'm not going to engage with=20 > them". That's a bit frustrating. Oh, my apologies! That wasn=E2=80=99t my intention! With John and yourse= lf, I do agree with you. I=E2=80=99m just trying to understand the logic= in limiting it. As in, =E2=80=9CI intuitively feel the same way but I d= on=E2=80=99t know why but maybe you do.=E2=80=9D Intuition sucks sometim= es.=20 >=20 > Secondly, I don't think "it's possible with half a dozen lines of=20 > reflection, so it's fine for it to be a first-class feature of the=20 > language syntax" is a strong argument. The Reflection API is a bit lik= e=20 > the Advanced Settings panel in a piece of software, it comes with a bi= g=20 > "Proceed with Caution" warning. You only move something from that=20 > Advanced Settings panel to the main UI when it's going to be commonly=20 > used, and generally safe to use. I don't think allowing arbitrary=20 > operations on a value that's declared as the default of some other=20 > function passes that test. >=20 > Regards, >=20 > --=20 > Rowan Tommins > [IMSoP] >=20 That makes sense, but is it uncommon because it is hard and slow, or bec= ause it is genuinely not a common need? =E2=80=94 Rob --bb4c1084afe54f1ab79169ce2f0b6414 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

=
On Sun, Aug 25, 2024, at 18:21, Rowan Tommins [IMSoP] wro= te:
On 25/0= 8/2024 16:54, Rob Landers wrote:
> Hi Rowan, you went t= hrough a lot of trouble to write this out, and the 
&= gt; reasoning makes sense to me. However, all the nonsensical things you=  
> say shouldn=E2=80=99t be allowed are already p= erfectly 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 bi= t frustrating.

Oh, my apologie= s! That wasn=E2=80=99t my intention! With John and yourself, I do agree = with you. I=E2=80=99m just trying to understand the logic in limiting it= . As in, =E2=80=9CI intuitively feel the same way but I don=E2=80=99t kn= ow why but maybe you do.=E2=80=9D Intuition sucks sometimes. 
=


<= /div>
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-cl= ass feature of the 
language syntax" is a strong argu= ment. 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 go= ing to be commonly 
used, and generally safe to use. = I don't think allowing arbitrary 
operations on a val= ue that's declared as the default of some other 
func= tion passes that test.

Regards,

-- 
Rowan Tommins
[IM= SoP]


That makes= sense, but is it uncommon because it is hard and slow, or because it is= genuinely not a common need?

=E2=80=94 Rob
--bb4c1084afe54f1ab79169ce2f0b6414--