Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125051 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 05E681A00BD for ; Mon, 19 Aug 2024 18:28:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1724092208; bh=oOcGDgQzI1nnEvzifZROCpehRt5TicmCVwftqVJSyA4=; h=Date:From:To:Subject:In-Reply-To:References:From; b=MUKFzUGjSwE9imqNyO6Pvv2Q05pti+5upvAE22n53EGvOYkUlMHEzd6vYvUTTFAxH yJg/M6suNfMjYAbd59YwZG+5nQTRnoaIe0hBffBk/N8/Lp1XUZEY9leBhKVWJWpBEY wdQQLCiTlL+Z96xabyGXc/1MFuPZO78MXm7ejBJZcZK0Ve+K6L3tIqzboWpBZWBCAL AB6Zj/UmNVmZ7V2TkGDZ2fTNbMEn6XynCvRaSGtgbOlrzzTXNZAw/ngfrAs7NIM2+r VcLTCTv6o3wOUbS5vJw+oO2RcySDkwCvTnZULlxZog+Oh0/bEc5HdODxPRoEOegllx 3yIxJncq95R+Q== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 34C78180083 for ; Mon, 19 Aug 2024 18:30: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_PASS,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail04.x-net.at (mail04.x-net.at [83.65.7.57]) (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 ; Mon, 19 Aug 2024 18:30:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail04.x-net.at (Postfix) with ESMTP id 14A3C60235 for ; Mon, 19 Aug 2024 20:28:15 +0200 (CEST) Received: from mail04.x-net.at ([127.0.0.1]) by localhost (x-zimbra04.x [127.0.0.1]) (amavis, port 10032) with ESMTP id 3JsNaRL--W7O for ; Mon, 19 Aug 2024 20:28:14 +0200 (CEST) X-Virus-Scanned: amavis at x-zimbra04.x DKIM-Filter: OpenDKIM Filter v2.10.3 mail02.x-net.at 2DF1A3805C7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dafert.at; s=36750624-FFB8-11ED-A31F-F74EAB1B2BED; t=1724092090; bh=oOcGDgQzI1nnEvzifZROCpehRt5TicmCVwftqVJSyA4=; h=Date:From:To:Message-ID:MIME-Version; b=MKZTmhgygpralFha7anwg5a+KM14PDeBDkIRH1R6enZJGkPNSkZYfV98UirmQgRvT poxHgOtLmhQ1+mPo3Mrr24mjt0tqcvD1/IGu06G4nHFf0OFu9M/I3KLjVlK8UOK0I8 YEXmkmMmoCQNFsK7TybOSwcsNPAYj5+AQ8gQZgw0SL8vUUL6LjOWg+bsKqcnS0Vo8f /JXPQrNr8mj+o8ooe6F6ZALtUs/Z1eUkOLAW8Rl37PP33IW68p5oU7fYNy4qUdqJ4E kfNa6/O/+CNx3xaulwOEzcIYB4Ru3JuuHQa/Un0r00CiLUT59rv6T86xE8DiqOBoEk yAADDlkwyLPgg== X-Virus-Scanned: amavis at x-t.at Date: Mon, 19 Aug 2024 20:28:09 +0200 To: internals@lists.php.net Subject: Re: [PHP-DEV] function autoloading v4 RFC User-Agent: K-9 Mail for Android In-Reply-To: <2716f729-4008-4f75-8412-861d8960b746@app.fastmail.com> References: <2716f729-4008-4f75-8412-861d8960b746@app.fastmail.com> Message-ID: <63654CCD-DF9C-45A4-814E-5696BD780EB3@dafert.at> Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: mel@dafert.at (Mel Dafert) On August 15, 2024 5:22:51 PM GMT+02:00, Rob Landers = wrote: >Hello internals, > >I've decided to attempt an RFC for function autoloading=2E After reading = hundreds of ancient (and recent) emails relating to the topic along with se= veral abandoned RFCs from the past, and after much review, I've decided to = put forth a variation of a previous RFC, as it seemed the least ambitious a= nd the most likely to work: > >https://wiki=2Ephp=2Enet/rfc/function_autoloading4 > >Please let me know what you think=2E An implementation should be along be= fore opening it for a vote (now that I realize how important that is)=2E > >=E2=80=94 Rob Hello, I've also noted that on another RFC, but I think it applies here too:=20 Any new constants that are shaped like an enum and used like an enum shoul= d just be an actual enum=2E I think instead of `SPL_AUTOLOAD_CLASS` and `SPL_AUTOLOA= D_FUNCTION`, there should be an `enum AutoloadType` (to be bikeshed), and the new param= eters should be typed as such, instead of `int`=2E Regards, Mel