Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124647 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 A13171A00B7 for ; Sat, 27 Jul 2024 12:52:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1722084841; bh=ky+D+Qv8LJf4DnbSIwH4HQcy2Pf6upUtwwGJ8AdcyWA=; h=In-Reply-To:References:Date:From:To:Subject:From; b=eWizpw36A6yQ47VJby1gWSh1tlDJF8yNC6YuEPdPP/S2nxRM6gvlyTbpIQ8HYY9bm TKUjUOv/qqm5SYe9lci1kw47zVHh6jHK/0pDZ89X3xLG/zr7jObaKhq+5uuTJ3v3DZ RrGXf3q09yyLaR399GItrNRQvoYhfcM+M+h6bacE842+tbReS0O76N5r7KVtI0kHnP G/IbT4NzlA1WgmeJzpdVP3jezfGP7vSFraOCC1d8SER/BouNjSGGpt7MWW36qAfLHR i5bXPI9cUeLgoVmUQrBvGR23+0hcwKx+1MdBm1qyv9TyN6+i6XUKwIrO8mbS3Jx0ih oLdSDz/vqcdtA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6B2F318003F for ; Sat, 27 Jul 2024 12:53:59 +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,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fhigh8-smtp.messagingengine.com (fhigh8-smtp.messagingengine.com [103.168.172.159]) (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 ; Sat, 27 Jul 2024 12:53:58 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 7F80811400D6 for ; Sat, 27 Jul 2024 08:52:22 -0400 (EDT) Received: from imap49 ([10.202.2.99]) by compute3.internal (MEProxy); Sat, 27 Jul 2024 08:52:22 -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=fm1; t=1722084742; x=1722171142; bh=5uUGoD7o0x psjSWSdVtlEvfagnsEAjfXEGydjN+b/ss=; b=EgvO9YuxgOqmsWXr9EzxaU19Zz KJOSlA1ukqpNMqSPTBNu5a1UbYDiFl9xcDxcfylkb23fdbj7sAhGQp0myGHNj50n vG/0bwtZz0px7wdeRq2gBrVEd8LK/6ZS0TbBrgyMGQuMVlbuebAHLL+GkP00HcR3 DBRlsOor6ezmLL0K9prKIllpmQIRjvWtmJjwhYo0FjDdMLmB7pYviHcc78u4vcU/ n0AetpK/AMcVfUWgrEh8Inm0VX+a4n4bASHILnsBKFkM7qp+4tHdkI2iKofzEhOk o1Fp+t6qrm5xH2vwgTP8nccIgCJ9ix8I9esIGhM+ukCffjwNC13CIhGPnNHg== 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= fm3; t=1722084742; x=1722171142; bh=5uUGoD7o0xpsjSWSdVtlEvfagnsE AjfXEGydjN+b/ss=; b=YivBk31mvHDdTK75FFoZWd4iCFUGTDE2+KT31gGcRov7 XMBQxU5dB7mAJct/dzRoFzpakmzZIJdBpnPz7Dch6fMg4yI+sD8gliclFfx6Qy3W 4pa7s1s2924mxMGR1MOMEt2CgIz8oCAvwIn1K2dqM9jopNn+97FIPi1LBNUQKDV/ leicU5hN/p6siSwEST4F9s77V7TNz0E7/WyzLOGOTTcXKkgj3AP2rUznPE1uXG09 znUd3/jJ9X2MYMw94XjRpkUYK2ZLr36Pm8r6wCQWAkADv2BZhGXeLon8QhAEan5Z 9TNz9ri73i65PyHXxpZH9v5xrGcE/pIqYXC5kq+ybw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrieejgdehkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesrgdtre erreerjeenucfhrhhomhepfdftohgsucfnrghnuggvrhhsfdcuoehrohgssegsohhtthhl vggurdgtohguvghsqeenucggtffrrghtthgvrhhnpeeffeduhfduudeikeekudfghfdugf eljefgkeeghfdvieekledvvdejheetgeetgeenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpehrohgssegsohhtthhlvggurdgtohguvghspdhnsg gprhgtphhtthhopedt X-ME-Proxy: Feedback-ID: ifab94697:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 3BDCB15A0092; Sat, 27 Jul 2024 08:52:22 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-582-g5a02f8850-fm-20240719.002-g5a02f885 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Message-ID: <0cc6c25f-208e-4782-88c3-c1e3d42454c7@app.fastmail.com> In-Reply-To: References: Date: Sat, 27 Jul 2024 14:52:01 +0200 To: internals@lists.php.net Subject: Re: [PHP-DEV] Explicit callee defaults Content-Type: multipart/alternative; boundary=b5880c5b4c5d47ec9527dc727a558e57 From: rob@bottled.codes ("Rob Landers") --b5880c5b4c5d47ec9527dc727a558e57 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable On Sat, Jul 27, 2024, at 11:50, Bilge wrote: > On 27/07/2024 10:41, Rob Landers wrote: >>=20 >> This seems like a case for code generation > I don't understand how this has anything to do with code generation. I= understand what composer-attribute-collector is doing, and see no appli= cation for it (or something like it) here. Could you explain a bit furth= er? In your example you show how to write code that does what you want, but = also that it is annoying to write by-hand. Thus, generating the code ins= tead of writing it by-hand might be better than a new language feature; = and there are many things that would benefit from that. =E2=80=94 Rob --b5880c5b4c5d47ec9527dc727a558e57 Content-Type: text/html;charset=utf-8 Content-Transfer-Encoding: quoted-printable
On Sat, Ju= l 27, 2024, at 11:50, Bilge wrote:
On 27/07/2024 10:41= , Rob Landers wrote:

T= his seems like a case for code generation
I d= on't understand how this has anything to do with code generation. I understand what composer-attribute-collector is doing, and see no application for it (or something like it) here. Could you explain a bit further?

In your examp= le you show how to write code that does what you want, but also that it = is annoying to write by-hand. Thus, generating the code instead of writi= ng it by-hand might be better than a new language feature; and there are= many things that would benefit from that.

=E2=80=94 Rob
--b5880c5b4c5d47ec9527dc727a558e57--