Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125142 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 F3F6B1A00BD for ; Fri, 23 Aug 2024 13:44:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1724420793; bh=+//Sc31ZzGqDUfVdfjLJ60lFD6CPonmhHsd+Z19YavI=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=dB3/3eaC5AJPUsptQ/f0BdoGYd5BSkUlzyxthbBV74tFiiTYJNfPqAviWnUqgwp12 XzRS/pBl7tnJ7JAl6m9njMTdQJhzch9n1FoQjGyUSjZOqOf4xWEFcpNT3o1/VUx1Ks UsQmJ1UOrTJ5/3ERaG9Syc1moS4QE5gOd+yp5Sd8JXvC/jxryMdbEQ+kFDE1xxQzNP B9qACagpoH5swWbtXSiJddlgKJm3C9Mt/shKz6mtbyA1fuoCksIU25IyTLks+In8hJ DVS6XO1tRTILINpsaflxcIENXPaMIRq/abnzl31j/NpXAVUyK0kHc/L9ycARwcYQcJ Za0FXOFv67Ehg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 04FD6180042 for ; Fri, 23 Aug 2024 13:46:33 +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,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-yw1-f172.google.com (mail-yw1-f172.google.com [209.85.128.172]) (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 13:46:32 +0000 (UTC) Received: by mail-yw1-f172.google.com with SMTP id 00721157ae682-6b5b65b1b9fso16813637b3.2 for ; Fri, 23 Aug 2024 06:44:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newclarity-net.20230601.gappssmtp.com; s=20230601; t=1724420681; x=1725025481; darn=lists.php.net; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=+//Sc31ZzGqDUfVdfjLJ60lFD6CPonmhHsd+Z19YavI=; b=ejUwMA5cQiMriifoawk+6/5rlPJRgiC+zfDYbdxHrcHgZ0KtceXDiirVKiq3gGTj8K lFDmXoq67Unmt+svmjh1rPedc9soZ34KO6tNfQku/Y0/uIAqFDAZQApbnMGlQP3sMlkq yTtUXAFtP0nTi3amhiIfC8PAIKMR/EkpRH+PCG2/nziO6eVwovrgd36dH5D/nCpPluh3 fdOCxORbgQwf84BMN52zOfiICKJm8LGqkPwu5Eh3JoSXoFCOFyIo3FaFyU7D/0VHBE0f 8ppUB4i+5ywStlzXKq+d/OHdOWmwssc+7IdI+95u/Qewc/i963OylLq/aED2XOhAzq5x 42RQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724420681; x=1725025481; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+//Sc31ZzGqDUfVdfjLJ60lFD6CPonmhHsd+Z19YavI=; b=Y5vRsRiebj4bjtninr5opADWVS4Jy04iyDm5PGzXa9j1iI8KpHPCGbo22JQ+xCA3Kc VV83pMF7i+EaFpRtTjBmUHSgURxfDm+Qt3smjSmDxGMZnpglkSkgLvSbKcMjYC0YYThs UGWogMxlYmuSC4RI5a8SDd0aNaHnbBJEv9hu4vOS/wsNV6b4xdqke/x4CZQWWlV9HS7W P37yNZX+R5REINcFXDAJlShb68kvIeLGyae0z+rd1grKt2EKdMj22uNXTuQkraAPnYqJ b3AiLXIO22ylvqPvhuPoVU08dsJZDpjGbomVrd/cErD3Hz2v/HvoG/hy1Jvm4DtKrlBx OBrQ== X-Gm-Message-State: AOJu0YwPTUeazO1LdqwGtVnZZN6/xhtxBKZ+3q6vL+6WhPzAhUtmH6Dw Bzicb7fY5KrJ61IZtPOaNKJE3um5o8JtA1RcLPnABwr55r3YYKW4PkWGRIvvAv03aWxBOrOgYFU NH+4= X-Google-Smtp-Source: AGHT+IFQHXDaH5xZEIC2Ce3cFpFycT8uTKlmLf1WNGmKlMdDCoEZ+oFMl4lyimdrmysqp7+xGOjmKA== X-Received: by 2002:a05:690c:4c0c:b0:6b3:3520:a45 with SMTP id 00721157ae682-6c6259571abmr23606757b3.20.1724420680671; Fri, 23 Aug 2024 06:44:40 -0700 (PDT) Received: from smtpclient.apple (c-98-252-216-111.hsd1.ga.comcast.net. [98.252.216.111]) by smtp.gmail.com with ESMTPSA id 00721157ae682-6c39dd47b4esm5471477b3.105.2024.08.23.06.44.40 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Aug 2024 06:44:40 -0700 (PDT) Content-Type: text/plain; charset=us-ascii 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 \(3696.120.41.1.8\)) Subject: Re: [PHP-DEV] [Concept] Flip relative function lookup order (global, then local) In-Reply-To: <64406CFC-D844-46D9-BC08-BCD405D7BB53@cschneid.com> Date: Fri, 23 Aug 2024 09:44:39 -0400 Cc: PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: <6AB19E9E-BD7F-4C5C-A2E0-82EAAD922031@newclarity.net> 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> <64406CFC-D844-46D9-BC08-BCD405D7BB53@cschneid.com> To: Christian Schneider X-Mailer: Apple Mail (2.3696.120.41.1.8) From: mike@newclarity.net (Mike Schinkel) > On Aug 23, 2024, at 8:56 AM, Christian Schneider = wrote: >=20 > 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. >=20 > The "all" in his sentence suggested to me that he means more than him = and you. > But then again I might have misinterpreted this. >=20 >> 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. >=20 > Definitely an interesting read, thanks a lot for the work you put into = it! >=20 >> Further, function autoloading is a clearly missing feature that would = be useful in many situations. >=20 > 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. >=20 >> 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). >=20 > 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. >=20 >> 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. >=20 > 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. >=20 > 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. FWIW, Rob asked me to review his ideas in email and I pushed him to open = up a repo so that discussions could be captured and made public rather = than lost to the ethers of private email. The problem with discussing everything on the list from minute one is = that the list has a habit of punishing those who bring ideas that are = not fully-baked. It is very hard to brainstorm anything on the list = without getting shot down by those who expect everything discussed on = the list to already be fully fleshed out. =20 Better to get a group of motivated individuals who all want to see a = related RFC succeed and get them to work through the issues enough that = when (and if) it is brought to the list there will not be obvious = negative arguments against it to nip it in the bud when it otherwise = could be something worthwhile. Also, whereas only discussion happens on the list, in a repo you can = actually start writing a potential implementation and crafting an = eventual RFC, so it has the potential to be more productive. Finally, = the list is the gatekeeper anyway, so if things are already decided that = the list disagrees with, it still won't pass.=20 So, if you feel you are a stakeholder on this idea, I'd suggest = celebrating the idea of a repo and joining the discussion there.=20 -Mike P.S. As for using Reddit, I'm not as big of that as its has its own = culture that can be just a difficult to incubate ideas as here on this = list.=