Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123817 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 E98CD1A009C for ; Tue, 25 Jun 2024 15:17:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1719328756; bh=sdutRuEgxxFLU1e0ryDtfuV9LtH2vx3uuLIT3Gyw+ZY=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=LvxLa50ugInU3mFI5i+m4ctSNa/cLsDiNAKEli8tfk0Ah3z9jP/85ZjiwuD7QLgM/ v/JQqADM7YKZHrzZtzyNg4UYZbQ3wtr2ri7Kb5Vn0bR2a7WZAabLbcKfoqjZytI7Py uvk71HfTuknCK+4Othl0Xo/d0P3sGqMmXi+PIJzqsbRMePqLJ1jAiPvNeI1uaiQ5m7 5p+tBGbm7T4P0VvyLxpMFY88CkoFOMaNOAvyTxSyYG3MPB/Gw2G7fMYaB0Mgu+BmNw ZOwA4exN6z7IA3Ny53W3R1xqXgE1J4bp8SEdJMiSQLLxEUwyaX+ey69fmJtOST4pA4 2/IOLXPPu/Lyw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1FAE81804E3 for ; Tue, 25 Jun 2024 15:19:16 +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) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 25 Jun 2024 15:19:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1719328676; bh=sdutRuEgxxFLU1e0ryDtfuV9LtH2vx3uuLIT3Gyw+ZY=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=BQ9uOyKZ1Tm+I+AnT76iOVTv4cR698H31h/5fYfeVijv9SgY6eoWFvGTIZyoM65e4 ROXa6odvhqb3d16NTa7CL3dPK0dTzXBeYjk+Ff+lrnfQMvN7J1Hsz0FfgU7F9X6VFw dbWKs170yWviMgbz3iDA8oUVDX1YS+Ou3e5jKLxv9wltLKqCbTf+pySib3jJxdN2CN pT9uG+dE975oFuwEvr9Jrzn8xm6KkFHwzd5K1mORYc0r2i3PM1eESUWyUs0umZfxws Hv6T4n72FUL3u6JZsGnbGX1bYcTx7Sm+EyBK09Qnk+v8eQBzHJyTjBRLRJaO+FpIqr OB/geU8miDtbg== Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id BD91B10C49D; Tue, 25 Jun 2024 16:17:56 +0100 (BST) Date: Tue, 25 Jun 2024 16:17:56 +0100 (BST) To: Larry Garfield cc: php internals Subject: Re: [PHP-DEV] [RFC] Static class In-Reply-To: Message-ID: <4596aa73-cfd4-2292-7191-2839a5bab695@php.net> References: Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII From: derick@php.net (Derick Rethans) On Sun, 23 Jun 2024, Larry Garfield wrote: > On Sun, Jun 23, 2024, at 6:10 PM, Bilge wrote: > > Hi Internals! > > > > I am pleased to present my first RFC: Static class > > . > > > > This work is based on the previous discussion thread on this list of the > > same name, and hopefully captured all the relevant details, > > notwithstanding anything unanticipated that may present itself during > > the implementation. Let me know if you feel anything important has been > > missed. I am aware it omits to mention specifics about messages so > > emitted when runtime or compile-time errors occur, but I anticipate this > > can be hashed out in the PR, unless consensus indicates otherwise. > > > > I am aware this idea is not supported by everyone, but there seemed to > > be enough positive voices for it to be worth a shot. I'd like to get a > > better idea of where people might stand when it comes down to a vote, > > now there is a formal RFC, so we know whether it's worth completing the > > implementation, although any sentiments so proffered are of course not a > > commitment to vote any particular way and nobody should feel compelled > > to speak to that unless comfortable. Looking forward to feedback! > > For the record, as previously stated, I will be voting No on this RFC. Having read this thread, and the previous one from half a year ago, I will do so too. In short, we shouldn't be encouraging static classes as a bag of static functions, that ought to be just namespaced functions. cheers, Derick