Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121721 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 82095 invoked from network); 20 Nov 2023 07:52:40 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 Nov 2023 07:52:40 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 4F05E18002B for ; Sun, 19 Nov 2023 23:52:42 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 ; Sun, 19 Nov 2023 23:52:41 -0800 (PST) Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-40a48775c58so14639695e9.3 for ; Sun, 19 Nov 2023 23:52:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700466758; x=1701071558; darn=lists.php.net; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=K36nMibuNC1lf+LcuDEt8ck3RKnV/EknL69cCOyc0D4=; b=N0RhgrBvDohPoUnyqp7C+k+cPyiK/ksCCNNqomOC89wuXPc2hlqFwbbxA/m9hIRhp5 2/lEmRToDK3AZLXQpUP3zdOLoHmFBkKe1eCYni/kYBVcDukWRif+ex6MfhyKs2f12MKQ nsUDmMZqph63IvPrLEA4ZiEhMMngDSVqWZVkwncv3sqVIfZI4rDiWNkQvsfrDINcvStm S2ua/OD9+SEnLHi37WkPiP//ICefdODZpiLX8rkXxxJgl7lOn0dy/GnHl2xLP3XyOmPS TNjOPxnEIb+xXWEgrnbBJSehECLEWJO/rHrgOUzdadDOCVywt6xgtceAzi8htSef0yZ9 PfGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700466758; x=1701071558; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:to:from:date:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=K36nMibuNC1lf+LcuDEt8ck3RKnV/EknL69cCOyc0D4=; b=cf1MmCsfQ+xTFdR4hQZwwnbkXonl7bmjP9pgENz3FfI6jYV/K70NN9Evlf8jINYK9k No3857iRXTHoSQ0QbWvKGnccYY+ylcMRkHI6zQbl3JoKKaEUh3M7jd5y4s6q4ijEMDgp 8csuiYJ1uA3vQwocWRe1rRrOSHC1R9dZgkBjWTDDDW2x8av3mv7O6RF6fBwcsCC9z32B BCEbBD17loCAk8A+Aw/hSqof4/d0+cndQWxAxS1EzBYit5pd+86MmoVvHASCkKSesAAa YX26rhHs2GKvRphZoiFS2CDfqqM943jMENQIO1p1ytAIw6pHiDKIdr5/aQpeKg3B18jV fggg== X-Gm-Message-State: AOJu0YxslwCNDov3oRbVb8U9Fo5ZmHRtnS8hj4p3uAyUYrsTLP2eZyom SwrWyI1mgcOFT3WuE32hZiFsD2ATnik= X-Google-Smtp-Source: AGHT+IF6HIsAYydhfqefTT8tkJ/eX6k3yeT9iaaV0wGZrzPOLRkqDGP1ucbnKXCIryejkrGZQexsnw== X-Received: by 2002:a05:600c:450a:b0:408:2b:3ae with SMTP id t10-20020a05600c450a00b00408002b03aemr4649335wmo.6.1700466757856; Sun, 19 Nov 2023 23:52:37 -0800 (PST) Received: from [127.0.0.1] (cpc83311-brig21-2-0-cust191.3-3.cable.virginm.net. [86.20.40.192]) by smtp.gmail.com with ESMTPSA id n2-20020a05600c294200b00405c7591b09sm12335640wmd.35.2023.11.19.23.52.36 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 19 Nov 2023 23:52:37 -0800 (PST) Date: Mon, 20 Nov 2023 07:52:36 +0000 To: internals@lists.php.net User-Agent: K-9 Mail for Android In-Reply-To: <79d675e3-95b4-40bb-baf4-3e1c998f5390@online-presence.ca> References: <79d675e3-95b4-40bb-baf4-3e1c998f5390@online-presence.ca> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] RFC Proposal - static modifier for classes From: rowan.collins@gmail.com (Rowan Tommins) On 19 November 2023 21:28:08 GMT, Lanre Waju w= rote: >Hi, similar to the abstract and readonly modifiers to classes (similar in= syntax only), I propose a class level "static" modifier that ensures: Hi Lanre, There was a proposal for this several years ago which was declined at the = voting stage: https://wiki=2Ephp=2Enet/rfc/abstract_final_class That doesn't mean we can't look again, but any new proposal would need to = at least address the reasons the previous one was declined=2E I believe the= se are the relevant discussion threads: https://externals=2Eio/message/7921= 1 https://externals=2Eio/message/79338 https://externals=2Eio/message/79601 My memory is that one of the main points against was that a class with onl= y static methods is just a namespace, and you can already put functions dir= ectly in a namespace=2E The only issue being that we don't have good autolo= ading support for such functions, and that's a whole different problem=2E= =2E=2E Regards, --=20 Rowan Tommins [IMSoP]