Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123614 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 AB5C21A009C for ; Sat, 15 Jun 2024 14:40:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1718462479; bh=s7JEqv9k135UVQGxoxsAaYdh0mxbKKrZR/G9xez3wZc=; h=Date:Subject:To:References:From:In-Reply-To:From; b=MSKxa8xVr444gptrG+NM8GskpEldYu7nizTLq/gLRErRD0oyeqXph5elTZFJypbRg VJjtGZng0WP/qH1xjEFfxiNrxweZZfQhb4JDToKA9ewmXydsSCuYOEKpmnRgLrDNVM m1ciUMiM0njvW2gd9GdvtE/uFlYe/D1skqHkH7YGAjhQ8tvmQvjjThXo/w2Lx1dGsv RZknjg30jartZ2diPOC3i7MvC3feHtNTkWUWAIOjOgm5OcFQxkCRDJQe16RXpdrhNp PnP87ZkuqBdt6gBoInGY+Ga7CpiKDs08FzjZwMdBtzh5UpY96gOshmTcJogDVyVCg8 ifN6rJELbpS3g== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DAC9C180683 for ; Sat, 15 Jun 2024 14:41:18 +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.8 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DMARC_MISSING,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,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 mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 14:41:18 +0000 (UTC) Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-4217990f997so23369585e9.2 for ; Sat, 15 Jun 2024 07:40:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=scriptfusion-com.20230601.gappssmtp.com; s=20230601; t=1718462406; x=1719067206; darn=lists.php.net; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=SpkSW72KVfsEHyv1KPlBOFCEmqc1F+JUdGTpMQg6cNs=; b=wO2fOrr6dR5otafKM5+zI7DPOCqi5ZcAH7TShkGLgH9bbr2FQFza/Cc9zZVsq+S6Mu mAoJ/58M8cQu6HjiBTr2ltnZEG3GVOqrJNtPpLYR23jQhIcgHZjT7ztPo81RDdaCitXG YKEXA5vZY4YaOclFv3SEabKeYvY16HkdvlchavqGZ8lI0v+mxLAF1CdqW9gdK16PwMHJ nu6FfNdFiQNd3qk7aqjLggEWEChL2cIdPBucqteVr2c2GNS2+hLNfC2yxe/QucMbG3Rt eUMWVKzXxf2tIWAu0yKe9WTrLvxE2deJbu3xR4sCh9fxprdowvIpSAWH4ef+wyrNBxuA EdsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718462406; x=1719067206; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SpkSW72KVfsEHyv1KPlBOFCEmqc1F+JUdGTpMQg6cNs=; b=FqmikcyZZaZoP3DB9Gat+GM9UUYeIbmzt8C3kmIo4OSWh+4tzfqWJIXxjHgdNESu8J bxovvsKZ3ImqXAC/wAxK7mR7aCkBbvIRtqLocN3yJsZNEG0CXT0/BrKKuc+VTYArd/o5 PdN6sWZvZIfXeOZdXEcE453bACJqvVY+sPHVhogTGuMm6Z7WD6IYPmsZfCn//J+6Ivkg lylW/yWdewJgbeN4uy4MvhaQoR1yMD1N95JFe/zRdNC0h2m9OY4l8AWDRFPNyq2GZ+Li kHbNjdIs18xZNui7uHlr202SQIpNizNTKDY8V8inBsOXTBCkRfLVHzcc5sQeVgKpyo3J 96jQ== X-Gm-Message-State: AOJu0YxIn9wivmqPuWqPiTNazmUbO4Vij29VoJ5LCNkXv0ijgry3tNfX UehWORjV+abTfZ4UfPoWgBatgO6qQcFFE6VQuru51cbDv2QLXeA9004lW9/q9FRgZ9V/D9/hquh 1fL4= X-Google-Smtp-Source: AGHT+IGSZ57KZbe3KGxtz31Dg/lFhCXGeX1GjFMKKsyPf/pWzGU9IHW/JzKudS4hUbrJMrM1K10PcQ== X-Received: by 2002:a05:600c:5113:b0:421:2202:1cd1 with SMTP id 5b1f17b1804b1-4230484404dmr43446265e9.25.1718462406355; Sat, 15 Jun 2024 07:40:06 -0700 (PDT) Received: from ?IPV6:2a01:4b00:bf09:5101:7030:8554:1648:c9b4? ([2a01:4b00:bf09:5101:7030:8554:1648:c9b4]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-42286fe92c6sm138504045e9.18.2024.06.15.07.40.05 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 15 Jun 2024 07:40:05 -0700 (PDT) Message-ID: <1fc2f2d0-718f-45ec-8968-b66a1bde686e@scriptfusion.com> Date: Sat, 15 Jun 2024 15:40:04 +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> Content-Language: en-GB In-Reply-To: <936e1aa3-48cc-4552-9f68-676ebcdeb596@rwec.co.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit From: bilge@scriptfusion.com (Bilge) 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