Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124648 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 F324C1A00B7 for ; Sat, 27 Jul 2024 12:58:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1722085176; bh=o/N6i/tNS5B8NzqnAqk3M8Y1sv/MHuogD/+GuajJLlo=; h=Date:Subject:To:References:From:In-Reply-To:From; b=HbMP4UypGareQdGqT3UiDoh6frzezV75MON0X3ogiPhnebBGC3v2rN2iwVrlKCzJE hKAx8cIidIZ+ZoTfbBylv/1cp8QGOEP/1XPNfQkJqjm25m1LppgZoB1JlqE0eJZNDV taU5fSbyCOqGjBR1XQEUvV9Kbnd5VYOo1bNbFtt6s1kPkSuEPNIuLZpnV0rwb9u6Hi +MYn6c0Evg2tO/NlMRD0lk2pC7n5o0ZktTHRCSOLXV6pqHWroKmGvx0uz3JmsdXFR6 Kb603ZudADsVCg4gURIEDmLECSy4AQihaxaLWmfg935qeSSC34WqSgCgVMKML/TwpZ h80zz1DeDwO/w== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A9D39180057 for ; Sat, 27 Jul 2024 12:59:35 +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.8 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DMARC_MISSING,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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:59:35 +0000 (UTC) Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-4280c55e488so2641475e9.0 for ; Sat, 27 Jul 2024 05:57:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=scriptfusion-com.20230601.gappssmtp.com; s=20230601; t=1722085078; x=1722689878; darn=lists.php.net; h=in-reply-to:from:content-language:references:to:subject:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=2/5jSbOGHC9Db5iPdBvS3usi6GtHWhY5WckKK0Hv5lM=; b=Vfo1Ulgsrm9kYy6LKLLByOFu+OfLz9I9eE7UTBQmxuSMLspDpGAXUPRzA2PT2whqK+ TouMzGYNgbcG5WpNNCjSIeU4j4BkOw2ChZ6HNR+s3nsktr1Y84mAXqDVvV1Uf/3f4P5A mRUTCx8Ez6Q1ODeE+LalZqMpG+PLngA0uQWAeM9YPuu+Gse6HVRHIKT2GbOmrnIH+dQf CSCR7s5CMo9d9dX0xOd5kgaBIAxgLOz7rquJ1eGKkAXsEAVEN3a5ZHeClBLmkPrvKSC7 m/RjgECSa7HF6I4hWJlbYfOg8MdWKbTN8Ng6VxknryW2+VtQZfFdgVNFCHiHGcKE3Ijo S+XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722085078; x=1722689878; h=in-reply-to:from:content-language:references:to:subject:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=2/5jSbOGHC9Db5iPdBvS3usi6GtHWhY5WckKK0Hv5lM=; b=SApbZk9Gcwjt7fLiWsa+2d1ttsqiQIRvdqWnYSQ8lzEY3ShwDjXX4ax8+B8fh1F2o1 nGFH5eBUFMULTrTNuXTUT39EtF6XbJ9zDqV7SfDEChgSY0muLB6ot9Jjn08fMnrdt9xJ mb6FVh6lFWxr2vf1eSyNzfgPSbV/ubVOPuqzrWkzR2m0tF4tzC/gzx8jqSYwL+/RJodd WHMsx203Pe37aaPWVUXwSEE5Zj6TclBXdpozwWqGk/P4miA38CxTPGtFq2T1wjqkqBFv E73TB7Sv04uBl1q99LHAPLeZtSO+Zi6kYtjkucfZKb6D5MGsG5DksAHiJbKR2dH997Sc sQgA== X-Gm-Message-State: AOJu0YyEnzNtTjTOXK7Qq5k0V7gJeDUFtiGwZdJd8hHbNzCe//FGIbRy HDRmT3G/9FCpR//qlklH/IKAggNOmI0DsxJZ8nK3z5s7lMxsTwA2xnSjnVR1NNBWJ48q7nRcVSI V X-Google-Smtp-Source: AGHT+IHkn30IyFK8TGFZ/7PEYFjRWO1UjTLbPjX4hYUjIT7/UUN5TV95MKxGhxTDOXP6Y98yx1g6nQ== X-Received: by 2002:a05:600c:4ed1:b0:426:67fa:f7 with SMTP id 5b1f17b1804b1-42811e6a721mr17318765e9.9.1722085077754; Sat, 27 Jul 2024 05:57:57 -0700 (PDT) Received: from ?IPV6:2a01:4b00:bf09:5101:19f5:1296:3586:79ee? ([2a01:4b00:bf09:5101:19f5:1296:3586:79ee]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-4280ca10aa6sm62330605e9.26.2024.07.27.05.57.57 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 27 Jul 2024 05:57:57 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------aclSc4ocKzW0qf2tdUyfELop" Message-ID: <1052daf1-b00c-4b80-bac1-ebe1b9edaf50@scriptfusion.com> Date: Sat, 27 Jul 2024 13:57:56 +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] Explicit callee defaults To: internals@lists.php.net References: <0cc6c25f-208e-4782-88c3-c1e3d42454c7@app.fastmail.com> Content-Language: en-GB In-Reply-To: <0cc6c25f-208e-4782-88c3-c1e3d42454c7@app.fastmail.com> From: bilge@scriptfusion.com (Bilge) This is a multi-part message in MIME format. --------------aclSc4ocKzW0qf2tdUyfELop Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 27/07/2024 13:52, Rob Landers wrote: > On Sat, Jul 27, 2024, at 11:50, Bilge wrote: >> On 27/07/2024 10:41, Rob Landers wrote: >>> >>> 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 >> application for it (or something like it) here. Could you explain a >> bit further? > > 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 instead of writing it by-hand might be better than a new language > feature; and there are many things that would benefit from that. > > — Rob I understand your point is that preprocessors could solve this problem, and I agree, preprocessors can solve a lot of problems. However, that point seems entirely orthogonal to this discussion. Cheers, Bilge --------------aclSc4ocKzW0qf2tdUyfELop Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
On 27/07/2024 13:52, Rob Landers wrote:
On Sat, Jul 27, 2024, at 11:50, Bilge wrote:
On 27/07/2024 10:41, Rob Landers wrote:

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 application for it (or something like it) here. Could you explain a bit further?

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 instead of writing it by-hand might be better than a new language feature; and there are many things that would benefit from that.

— Rob

I understand your point is that preprocessors could solve this problem, and I agree, preprocessors can solve a lot of problems. However, that point seems entirely orthogonal to this discussion.

Cheers,
Bilge

--------------aclSc4ocKzW0qf2tdUyfELop--