Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119857 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 22762 invoked from network); 10 Apr 2023 13:00:54 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 10 Apr 2023 13:00:54 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 4EB5A18054C for ; Mon, 10 Apr 2023 06:00:53 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 10 Apr 2023 06:00:52 -0700 (PDT) Received: by mail-lj1-f180.google.com with SMTP id b6so29619101ljr.1 for ; Mon, 10 Apr 2023 06:00:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mirtes.cz; s=google; t=1681131651; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=MkkgjnxjQ+ikCMCXmmxnJNnfl1AHMyxqZVHUYt78+ec=; b=K+xNC0Fgrtadprd9Ix2u166rhU2kd4uoOG2SeLebbEP0vPp1dzGcVkYnPy4EUq63hW WCMIET5ofDdL3N7Juok40Y7QvdzRCYNZr1v3nD0tBjV/hcsdLfg+jq5aWyWnxHIR+dxp aj6aoJuYDg0ik2Iu4FJoK6W/NKf26ZJW98dxA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681131651; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MkkgjnxjQ+ikCMCXmmxnJNnfl1AHMyxqZVHUYt78+ec=; b=fWA4Sy/v+ejE9k8DZWFzFTQB/ZQsmcDo1U0MqmXEfTSzC1gZoZykoJJJy3c5jTX9S2 D/GpUQUH1k4h1IMjtEbPwkjePAApCPXrTOf4wd835Wi5LB8ELLDLr/BykPK9eED+WkPg +C5T6AMUU9qbBKCrfdXBxfZ8wTN5G+Nq+2iPjZ9PzRUDpLt3Ef+pjjgzqbUNLqB+fvF/ o/cMugpidznuBy2HzhtN5wc5iBpCv9Bm2I6010K+uAHMnhtQRwvoSuECjew7clICy4O3 ihC63a+qZNEu6XVgsmHRxbRyudWqWKK0GY5ofOMPnLkLlLRZAKhN+mbIi7slG8TpsFpt oHYg== X-Gm-Message-State: AAQBX9fDws2tMVRdfAQzM6FAf0p/Dr62Hr0V7leoq+qeRwi613k/LHWE 9q573BFT0pn7sFemuv2FAFy2wBPW8p5gawoRmnSekoSjnlp7ljcp X-Google-Smtp-Source: AKy350bqn97E3YIS6j9H9/le5W8fgUBa/nlJOz914UcSDbsKkaNoXvuLL1mQXGnBuL1rUn0la3Tgbt2jXJDEBS1sEf4= X-Received: by 2002:a2e:95d0:0:b0:295:a8c7:4b3b with SMTP id y16-20020a2e95d0000000b00295a8c74b3bmr2103586ljh.4.1681131651096; Mon, 10 Apr 2023 06:00:51 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 10 Apr 2023 15:00:40 +0200 Message-ID: To: "G. P. B." Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000e2758f05f8faf6bd" Subject: Re: [PHP-DEV] [RFC] New core autoloading mechanism with support for function autoloading From: ondrej@mirtes.cz (=?UTF-8?Q?Ond=C5=99ej_Mirtes?=) --000000000000e2758f05f8faf6bd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I don=E2=80=99t like the proposed function names: autoload_register_class to me reads like =E2=80=9Cregister this class for autoloading=E2=80=9D. If I observe the intended meaning correctly, it shoul= d be called =E2=80=9Cregister_class_autoloader=E2=80=9D. Same for autoload_register_function - better name would be =E2=80=9Cregister_function_autoloader=E2=80=9D. Other functions should be renamed accordingly. Function names should read like a sentence, like a command. On Mon 10. 4. 2023 at 14:17, G. P. B. wrote: > Hello Internals, > > Dan and I would like to propose a new core autoloading mechanism that fix= es > some minor design issues with the current class autoloading mechanism and > introduce a brand-new function autoloading mechanism: > https://wiki.php.net/rfc/core-autoloading > > The existing SPL autoloading functions would become aliases to the new Co= re > ones and will continue to work without any migrations needing to be > performed. > > Hope to hear your opinions about this! > > Best regards, > > George P. Banyard > --=20 Ond=C5=99ej Mirtes --000000000000e2758f05f8faf6bd--