Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123620 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 3FDBA1A009C for ; Sat, 15 Jun 2024 17:20:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1718472076; bh=C5S69Zq3WvCMBF4Sh2lTtePehA1yHe3DwCayPUg9dqU=; h=In-Reply-To:References:Date:From:To:Subject:From; b=A9nUABPQV1r5+UZuEtRd0b8LC/z/QFKw4zpdGDwRNb4sgIOOPzlwoJGXDksuq5Aos Bo8s9uWbZpD8guy/C6lxhSHY3tI4igDf8RIL8+ntE36LxnNb1VFlljKuI9Ax3s2zpT ihmun9vsGmwRQoNFYPUjpMbTOF1cSdvMvVbswtu6Vzh1I2lv0ezuXJgw8b/H+ZGtXf NfPnuGREk24crqbQcwJUH1pWL2ZSH54NXTje33sQrtcCNb1oz9Or+ZHSxExFixmfsQ Vx47DjgdFKLuH93p5NQXgFBgFlDmRE6syF7DQU3aNA3F2Bpd0sZhwSQSKQGIcOs5SH PQO+Q/YmCfr3g== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3F9E0180861 for ; Sat, 15 Jun 2024 17:21: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=-0.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_NONE,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 fout7-smtp.messagingengine.com (fout7-smtp.messagingengine.com [103.168.172.150]) (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 ; Sat, 15 Jun 2024 17:21:15 +0000 (UTC) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfout.nyi.internal (Postfix) with ESMTP id AC44813800FE for ; Sat, 15 Jun 2024 13:20:04 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute1.internal (MEProxy); Sat, 15 Jun 2024 13:20:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-type:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm1; t=1718472004; x= 1718558404; bh=9aU2ff36yYTkVogAeCSMTbLuOvO5EG57Cg8Rxx9cK4A=; b=A 5sDlUPrbJhERdKHntpej9BgWJcGgETq1LmGbe05ILM0++WqzE7U1W8BdsWUkJxa1 PA3BCZqdi3TNh1wDJaXTNvQNxcfr6A7Am8l1sy09W/euzQNrEH6dDWTo6waxff1U sjHWEPtSIbVJLGMsW+vSwWhgmX8gvviUrqtCNOUF+sSFXTKNZCwkSGSB4bNnsBQ9 zqvMvbCbOA0LaP6rLQmQJut5WywJWDA36PRlRQ8xAhJeSB82FHh8pffGEHyYI6BT EgqysdSgJllRZhJSxrUU2Yv+QKbH5VojOX+8KbvRLB/fXLNLMHmpPmz7M3aZjE3S eFWF/zQw4/qYJSf3dPHlw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1718472004; x=1718558404; bh=9aU2ff36yYTkVogAeCSMTbLuOvO5 EG57Cg8Rxx9cK4A=; b=e+4d2Rpu09Mf3x5CLwcLcLCnbAOtaZ5e5prYMQXtyvzW yMWNQxW8/X/6WG9oHvKvXZGSDjht1aT1B9L7/SHZDu58AKZVVDydgPlg+izNDwmw RGntiPSl251A4wlLTEsZP4U+2+jbjiQ7LDiJG7Z7kTiWlXPKuQl1zKzK07jmmIyu 23CLEJcRDdvztakCzDx4FvMS04+hBvl71PM0/vnxF6BK3v+zRU3reUeDvEMOn+oR mGJYQM7lo/EPDXVzLQL2lDZpnjzBnI7EZWwg4ezDGpvolWzQpA/4QNNF78O/Uyv9 RzPQB+l0Coh7t5GdVKcEVjR0l0R5EM8BxYw6uV6aAg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfedvuddgudduudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedfnfgr rhhrhicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtg homheqnecuggftrfgrthhtvghrnhepgeefffekleetgfekleegleffffdujeejvedvjedt leekuddufeelleevffeuheejnecuffhomhgrihhnpehphhhprdhnvghtpdgvgihtvghrnh grlhhsrdhiohenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhr ohhmpehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomh X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 41B351700093; Sat, 15 Jun 2024 13:20:04 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-515-g87b2bad5a-fm-20240604.001-g87b2bad5 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Message-ID: <251be3dd-08a9-414c-a6c6-2de25d6fd2b1@app.fastmail.com> In-Reply-To: <1fc2f2d0-718f-45ec-8968-b66a1bde686e@scriptfusion.com> References: <0cf69a14-f1b5-4077-9d91-d7b579485eec@scriptfusion.com> <936e1aa3-48cc-4552-9f68-676ebcdeb596@rwec.co.uk> <1fc2f2d0-718f-45ec-8968-b66a1bde686e@scriptfusion.com> Date: Sat, 15 Jun 2024 12:19:44 -0500 To: "php internals" Subject: Re: [PHP-DEV] Static class Content-Type: text/plain From: larry@garfieldtech.com ("Larry Garfield") On Sat, Jun 15, 2024, at 9:40 AM, Bilge wrote: > On 15/06/2024 14:53, Rowan Tommins [IMSoP] wrote: >> On 15/06/2024 12:16, Bilge wrote: >>> >>> I want to introduce the `static` keyword at the class declaration >>> level. That is, the following would be valid: `static class Foo {}`. >> >> >> This has been proposed before, and was rejected at vote. It was nearly >> 10 years ago, so opinions may have changed, but it would be worth >> reading through the prior discussion to anticipate or counter the >> objections raised, and avoid re-treading the same ground. >> >> - RFC: https://wiki.php.net/rfc/abstract_final_class >> - Pre-vote discussion threads: https://externals.io/message/79211 and >> https://externals.io/message/79338 >> - Final vote thread: https://externals.io/message/79601 >> >> Searching my list archive, I find that it came up again a few months >> ago, which I'd entirely forgotten: https://externals.io/message/121717 >> >> Slightly tangential, but some of the same discussion also came up on >> these rather lengthy threads about "static class constructors": >> https://externals.io/message/84602 and https://externals.io/message/85779 >> >> >> Regards, >> > Hi Rowan, > > That's all quite interesting, but I didn't get a good sense of why the > idea was rejected, other than people didn't like "abstract final" as the > syntax (thank God). As for why "static" was rejected, as stated, I don't > get a good sense of it at all, but rather than fall back on the opinions > of many who are mostly absent among those polled nine years ago, I'd > rather get a sense of the current sentiment of those present today. > > Cheers, > Bilge Please see my comments in the thread from just a few months ago that Rowan linked. I still stand by every one of them, and absolutely oppose "all static" classes, unequivocally for the reasons stated. Consider this comment a shorthand for copy-pasting my previous posts to this thread. :-) --Larry Garfield