Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123616 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 D7C671A009C for ; Sat, 15 Jun 2024 15:59:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1718467213; bh=Nx3wAPIhXNQ6jHztrihfhNXDVygwjhui53PLWioLGic=; h=Date:Subject:To:References:From:In-Reply-To:From; b=BEdG6n8jkfe7VsUBI39aKXasRaUe9c08l4UzKU9+E+scUsQo0YM9jQiLGJQKAThPJ 1Dhxb1G1Fy69CzDGFbZ/slRFcITPJeiyEC9Ff5CXqj0ZafveFockgcYJb7SGnIcXuD 1++CQO0gQjFbwRhM1U2K0h9ypFgTQ5BBSxRlSwihrsZfOjV1YQBnNW1Lhh5nILbeNX RhjgGwvwJMjCubpQ8/UqanqF46EpMJzewz8qkjzNpy6iIM97rWHvgWfUKakqqOPzab Oq8I8SINc8ptk0AAEMfkXRoOTB7p0/ABTWcCaDa0FJzoFekCe88YdJcsq9TsFo89Hm ISy1k2hxx9BxA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 09B361805EC for ; Sat, 15 Jun 2024 16:00:12 +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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,SPF_HELO_PASS, SPF_PASS,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 fout6-smtp.messagingengine.com (fout6-smtp.messagingengine.com [103.168.172.149]) (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 ; Sat, 15 Jun 2024 16:00:11 +0000 (UTC) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfout.nyi.internal (Postfix) with ESMTP id 31E251380162 for ; Sat, 15 Jun 2024 11:59:00 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sat, 15 Jun 2024 11:59:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rwec.co.uk; h=cc :content-transfer-encoding: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=1718467140; x=1718553540; bh=Vs5zG1NRrXgBjKhULFmFRW5HO8++Y/UX+jcQfdFw1S4=; b= yIj+W5eZ+m20SXLxULPuKy6lzP1UheibJQd+JIr1XTuqFY75omDTe2wQ7pNdjYo1 lRA1LyKEUIz9i8lQKlZYTRIDESOznMmZvNRmRWQ68iRgK03QzufuPwacMwSBR51d k5ZoSDWp/WAVDT7Ui+BBpzHz+QRe7aUCxVWFZ+gZqjQ3xNXOL/ixMK2+IWk1tloT U8zIcE0VLjSbVQymK6O0wQt9gwHFrKdLd+AiJLSbJOkHdpby4ah8XXgA0SzhSltQ gsPx4NBY6+Fg37Ieim8zMvUvprqor0xSYpA+/YPFH0ChTO1b+qTObTMYSmfjMgML owtGGtIg23F0PlQoanujTQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=1718467140; x= 1718553540; bh=Vs5zG1NRrXgBjKhULFmFRW5HO8++Y/UX+jcQfdFw1S4=; b=U 7/YgKxxX/LGph85rNwBqUDnJW47Whz7yrDkn2aW8vb3Qg5TUkvIYyFVwWx7L2zJn 8FwWxIUlnNKgInBeVnwoOr+2YJXAYRLMtDGH51tHqsTj5ecHPjoOUCWEwIrFbo/X msBzMQ4HBevVx0AD+Wls3VwsHGLFHhy3p8GveMdnCOPjBO05HNa5AGRuBc061N50 s+3RWW86LCKdU52LwspkTdUD3Wwg7lTPo1NytUzO1uZnOW1s+0hq+XFR9sJZpjfX 0rEiPFOcU8gwIqtdxJJsHdMQXV+meOCTaOt4aCVwtKHVOHKFj7vrUEraUwtoVKml lXKD1+4Y6uv6hyRHN03rQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfedvuddgleeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtje ertddtvdejnecuhfhrohhmpedftfhofigrnhcuvfhomhhmihhnshculgfkoffuohfrngdf uceoihhmshhophdrphhhphesrhifvggtrdgtohdruhhkqeenucggtffrrghtthgvrhhnpe ejkefghfeugffgtdeuheeggfdugefhudekjefhteegieejleehveelhfefvdfhudenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehimhhsohhprd hphhhpsehrfigvtgdrtghordhukh X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sat, 15 Jun 2024 11:58:58 -0400 (EDT) Message-ID: Date: Sat, 15 Jun 2024 16:58:55 +0100 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] Static class To: internals@lists.php.net References: <0cf69a14-f1b5-4077-9d91-d7b579485eec@scriptfusion.com> <936e1aa3-48cc-4552-9f68-676ebcdeb596@rwec.co.uk> <1fc2f2d0-718f-45ec-8968-b66a1bde686e@scriptfusion.com> Content-Language: en-GB In-Reply-To: <1fc2f2d0-718f-45ec-8968-b66a1bde686e@scriptfusion.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit From: imsop.php@rwec.co.uk ("Rowan Tommins [IMSoP]") On 15/06/2024 15:40, Bilge wrote: > That's all quite interesting, but I didn't get a good sense of why the > idea was rejected I haven't re-read the threads in full, so this is mostly from old memories. And please note I am not saying which of these views I agree with, just attempting to summarise them. Common arguments against: - Static properties are a form of global state, and that's something widely advised against - Static classes without any properties would be the same as putting functions and constants in a namespace, which we can already do Counter-arguments to the above: - People do it in practice anyway, so why not have a more standard way of writing it - Functions can't be autoloaded, but static classes can (unfortunately this is a hard problem, at least in part due to the design decision 15 years ago where unqualified names fall back to the global namespace) > 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. This line of thinking always makes me uneasy. It lends undue weight to *who* made decisions, and not enough to *why*. Inevitably, personal opinions do have an impact on decisions, but we should always be aiming to weigh the arguments for and against. In a way, it's like the jury in a court: the system works on the assumption that any group of voters would reach the same verdict. However long ago the discussion started, we shouldn't have to go over the same ground again and again. We should look back at what has already been raised, and think about what's changed, or what additional points weren't considered. Regards, -- Rowan Tommins [IMSoP]