Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123907 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 33FB21A009C for ; Wed, 26 Jun 2024 23:49:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1719445860; bh=2BdczpZPEDQwPoSfwFYE8R8rhWv+3qSdFvsLI5d0yvo=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=Jk9wR9oy/MKepVPAoJa6htjMbGd8Akc/2x1nFcE73ilyYxRDXN/nGAcFLXtliasdM 6Osp+B1PMAehfHF2VLcqCphfZJcV6/ZjU5TL7JT4Kg5Jl/RGo9tF+6mvKJkObEVB/s 1RIyz69lTQ9PfwwdFVTfy8JjGoR9Z7WnYngU3VWh+n9NmrMbJ8I4DHQ+lfp+aNkw2/ HsfklugOqpTGs81O7fknULDyiIQBjSMuWJSpcoIJrLYe5n23Pog99HrWH+1UGclVFO 5a6GaqT/gczTm+j33/lDtF1JtizZFY9UQxEeoeF7FB450W8OrvYfFgS+aHCqcb+bLh TN7zE96AZBoXQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 638D4180AD1 for ; Wed, 26 Jun 2024 23:51:00 +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=3.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_PASS, SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from xdebug.org (xdebug.org [82.113.146.227]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 26 Jun 2024 23:51:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1719445781; bh=2BdczpZPEDQwPoSfwFYE8R8rhWv+3qSdFvsLI5d0yvo=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=B0qCC8aLtxyH1ZAko39u2gFSQjK2LRKUybNuXwHizB/DRPt1bLdOrgL+9IZlz06Ha o+twggByz3+QkKpT9Sm1mCWaw85vysy416fj9BGOkZTC/zio8lFrKZi6v71ONz6SoF odFluGjMfqxOG9FCflPGH6okbvgbEbztD2qtW6iDVBcwsnarWHZF38qb6OkfcntO7a d8MvDyKEN6IBeE4jrmW71ZSPcxUe2X+uAc17jaSeipGI1tV5Z55gjKuz56ya7pkUR7 WMqiH1UfqPYLX3hwl+JCVocIrwZNUk3O1rAYOC1AbIxqSPXd6TszwOOIymB89GhQUK iuR8A4dOh+yyA== Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 3555010C59D; Thu, 27 Jun 2024 00:49:41 +0100 (BST) Date: Thu, 27 Jun 2024 00:49:41 +0100 (BST) To: Chuck Adams cc: Larry Garfield , php internals Subject: Re: [PHP-DEV] [RFC] Static class In-Reply-To: Message-ID: <397c5449-8e5d-e90a-371c-eae155cdfc5a@php.net> References: <4596aa73-cfd4-2292-7191-2839a5bab695@php.net> Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-558182679-1719445781=:90438" From: derick@php.net (Derick Rethans) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-558182679-1719445781=:90438 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE On Tue, 25 Jun 2024, Chuck Adams wrote: > > On Jun 25, 2024, at 9:17=E2=80=AFAM, Derick Rethans wr= ote: > > > > Having read this thread, and the previous one from half a year ago,=20 > > I will do so too. In short, we shouldn't be encouraging static=20 > > classes as a bag of static functions, that ought to be just=20 > > namespaced functions. >=20 > Which brings us back to the age-old problem that functions can=E2=80=99t = be=20 > autoloaded. Me, I want first-class modules, but until we have those, I=20 > have to settle for classes in the meantime. Scala/Kotlin-like=20 > =E2=80=9Ccompanion objects=E2=80=9D might be a good all-round substitute = though. There has been some work done on function autoloading too: https://wiki.php.net/rfc/core-autoloading cheers, Derick --8323329-558182679-1719445781=:90438--