Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125135 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 D2E511A00BD for ; Fri, 23 Aug 2024 12:56:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1724417911; bh=GcNVgPXiYcZQOpFYCV+IDkbxfgIxmYIMSz+Qxvm/rdc=; h=From:Subject:Date:References:To:In-Reply-To:From; b=EVDhUYN1QHWgXP4wbXjK6l4B5aV/kAfl6K3P2Nsky+XDm7/y4JXhlYLaLQPnnsHNo I41H4ri+FShNfjTpNEpbpIRjjZ6/2Xc8uGOQQJASk7chlDJxnBGEcuO5otnOchqLLo O69Rm5pzGzrybkKUzlFfwpyHLdGI3szjxilr9XMpP3kD+7JPupdq/hPgdNgvCoFMv4 FD3rtlC9GB2f9+mpLzu9KaRrIsSxjx4mTu8aUfmQTPR38SUxkyMjs7izWwNVF8tbvK G5O1atsyIJxl1RsdeDEaMhDHiNJEKV1KkcqM/p/SJ+rSNukqwhSiszOGIMkGmXDVNq Zw+x62/vPZ4sQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 258AD180042 for ; Fri, 23 Aug 2024 12:58:30 +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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail.gna.ch (mail.gna.ch [212.45.196.109]) (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 ; Fri, 23 Aug 2024 12:58:29 +0000 (UTC) Received: from smtpclient.apple (unknown [IPv6:2a02:1210:2e0f:4100:cd92:f947:228b:7477]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by darkcity.gna.ch (Postfix) with ESMTPSA id 0B1A73A1189 for ; Fri, 23 Aug 2024 14:56:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cschneid.com; s=default; t=1724417797; bh=GcNVgPXiYcZQOpFYCV+IDkbxfgIxmYIMSz+Qxvm/rdc=; h=From:Subject:Date:References:To:In-Reply-To; b=ba21CGIlWvW/1CSYjck6WG33kYw0FxED4rRvg4xyyFxx1GXrdgPbDFqymMo/qhI6R GgVmpaJwnWBDo15kOYTUrO3u+6WQ15ZOcJrDftid4UmWJ7quo9gJds/nx+Mb7fSUkU hZoCwkZBuiXz9ZIlZm8AnWuJSadNf+FvWF+qZO38= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) Subject: Re: [PHP-DEV] [Concept] Flip relative function lookup order (global, then local) Date: Fri, 23 Aug 2024 14:56:21 +0200 References: <846D7756-712B-4A7C-9FC6-DB9F858836B8@rwec.co.uk> <880ffc27dc9b421407a670c75d5f5ba756870396.camel@ageofdream.com> <790534cd-e158-4712-878c-642dfd0e2bad@app.fastmail.com> <63F3CFAA-0D9A-4323-A1A4-0E3544281ECE@cschneid.com> To: PHP internals In-Reply-To: Message-ID: <64406CFC-D844-46D9-BC08-BCD405D7BB53@cschneid.com> X-Mailer: Apple Mail (2.3776.700.51) From: cschneid@cschneid.com (Christian Schneider) Am 23.08.2024 um 12:27 schrieb Rob Landers : > On Fri, Aug 23, 2024, at 12:14, Christian Schneider wrote: >> Am 23.08.2024 um 11:34 schrieb Nick Lockheart : >> > I think we are all trying to achieve the same thing here. >>=20 >> I'm not sure who "we" and what "same thing" here exactly is. >=20 > Nick was replying to me :p, judging by the quoted paragraph. The "all" in his sentence suggested to me that he means more than him = and you. But then again I might have misinterpreted this. > As far as function overloading goes, I recommend checking out a draft = RFC I've been working on a very, very long time: = https://wiki.php.net/rfc/records. In some off-list discussions, it was = clear that if I wanted this syntax, I would need to pursue function = autoloading. Definitely an interesting read, thanks a lot for the work you put into = it! > Further, function autoloading is a clearly missing feature that would = be useful in many situations. The "clearly missing" and "many" part is where I disagree. But I was = mainly considering current PHP, not future PHP syntax like the Records = stuff, agreed. > If function autoloading doesn't work out, I will need to take a = different approach to that syntax (which is fine, but not something I = want because I chose the syntax for a very good reason). I know you do not want to discuss this here as it is off-topic but it = kind of feels the only advantage is to get rid of "new" in the usage of = Records. But I'll leave it at that as to per your request, we can = revisit that once the RFC hits the discussion stage. > That being said, I'm not ready to discuss records here, so this is the = first and last time I'll mention it on the thread. There is a Reddit = post in r/php and a GitHub repo if you are interested in discussing = records. There are very many things to work out still, and it is very = much work-in-progress. Also a bit off-topic but I still have to mention it, maybe worth another = thread: I understand where you are coming from but at the same time it feels a = bit worrying to me to use another medium (reddit) for a discussion about = future language features when we have this mailing list. I hope this won't mean that questions/suggestions/concerns on this = mailing list won't be discredited because of discussions which happened = elsewhere. I'm sorry if I sound a bit paranoid here but I've been in = this situation before in other (not software related) aspects of my life = before where I was told that something was already decided and people = were not willing to go back on certain issues because of that. Regards, - Chris