Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121743 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 52103 invoked from network); 20 Nov 2023 23:48:37 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 Nov 2023 23:48:37 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7DEE918002B for ; Mon, 20 Nov 2023 15:48:36 -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.3 required=5.0 tests=BAYES_50,BODY_8BITS, DKIM_SIGNED,DKIM_VALID,DMARC_MISSING,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-yw1-f172.google.com (mail-yw1-f172.google.com [209.85.128.172]) (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 ; Mon, 20 Nov 2023 15:48:35 -0800 (PST) Received: by mail-yw1-f172.google.com with SMTP id 00721157ae682-5cb76e7f7daso2543397b3.3 for ; Mon, 20 Nov 2023 15:48:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newclarity-net.20230601.gappssmtp.com; s=20230601; t=1700524112; x=1701128912; darn=lists.php.net; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=uIuxroA9qncbFC52Lr25b+S/EbNOMfayci0/bTbf86U=; b=jqLg0BdHGNqLlVdLtNINhLfGbu9a17q0QbTPHrtsVl9dDO3etNuOhwekGVcUCHa5eM Mfk2do/2EOhdHKopQt9cyhYQ8hr7poZlKCxyrIgiJXzcG+Ra3Q4izRHRbKSWBVTgprBC kGagdHA0dNTfZDG0eApEbxQ8YjlR6p6Xjeic2iAcBkCFBJELIk9ivROjfhojoLb7YVux jEyG6hI09LV+4RZD9xZ26ndnA9YB3XEuIeUAgjASPAzJ96TI6gSRJ67nPpUGTAUGGIY7 UaHPXHsywdnS1Dc6GzCxiSwP6u7EN9cOyMMns3RxdIf4xWV3HxNhGYnFr/Jv9XgJ3/3i z/Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700524112; x=1701128912; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uIuxroA9qncbFC52Lr25b+S/EbNOMfayci0/bTbf86U=; b=iv7wTiZFRN6FtdlbMBePgTcQlgSypHcXhzo4k6BLlXvQJO02DzQlIm+vlypCoaYuBc lHiBOuHCpORHef7UzGslTjCjwnTwogzBKxQUJBg6bzW2TP40EGPpE4jAQnQT2SjoS6w3 TQL+cwDyY5Gh+JneLKnPox6SLLqSgCe6uSSXTqDstTLvnnrBW15en56ToXaXwUOMyDFv QoDKRU0vZBCl7LsTBoSguKfqAlvAhGdPR3Jj4nF8z6svUsFs/gpsQwh15nKoGyUPZKup Rd/3PhLWOGKGi5BuulI8UM+ly1MheMeQPPR6f3DMbfVwY8mC71x39VK8LYh9DE8vaG5G EsKw== X-Gm-Message-State: AOJu0Ywdf6TAFLs/arvsDvxY8mLOoqcaTOOL+svhGDj7lv1f5m0JXbwu /ygWhmLidsG01i4YncbqphApgiigMn+BIskLnkAT+g== X-Google-Smtp-Source: AGHT+IHoyCVik/Ljnf89vadG3AfHEVESN3Yf1OGWDt5V0UAcE3OTQH/BBw3UtPwb0bjTz3JIG3hFNw== X-Received: by 2002:a25:305:0:b0:da2:b1d8:ea80 with SMTP id 5-20020a250305000000b00da2b1d8ea80mr8063421ybd.27.1700524111805; Mon, 20 Nov 2023 15:48:31 -0800 (PST) Received: from smtpclient.apple (c-98-252-216-111.hsd1.ga.comcast.net. [98.252.216.111]) by smtp.gmail.com with ESMTPSA id d188-20020a25cdc5000000b00d9a577d8434sm303015ybf.53.2023.11.20.15.48.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Nov 2023 15:48:31 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.4\)) Date: Mon, 20 Nov 2023 18:48:30 -0500 References: <79d675e3-95b4-40bb-baf4-3e1c998f5390@online-presence.ca> To: PHP internals In-Reply-To: Message-ID: <34979AED-893F-45DD-B641-A9F4F39B2928@newclarity.net> X-Mailer: Apple Mail (2.3696.120.41.1.4) Subject: Re: [PHP-DEV] RFC Proposal - static modifier for classes From: mike@newclarity.net (Mike Schinkel) Wow.=20 This thread has gone from zero-to-toxic in no time flat, and with some = participants being borderline condescending. It is almost as if some = folk are still in kindergarten. Maybe try a different approach, from both sides of this debate? For the advocates, how about explaining the use-cases for static = classes, why you want or need to use them instead of the proposed = alternatives, and especially pointing out any ways in which the proposed = alternatives do not address the same issues and/or provide equivalent = functionality as static classes would? And for the status-quoians, while I know you feel namespaces address the = reasons you believe people want static classes, you feel it is bad = practice to use static classes for those reasons, and you lament that = programmers still use static classes instead of namespaces, maybe = consider exploring *why* developers still use static classes instead of = namespaces? And please, consider if there is a better way to answer = that question rather than falling back on the canard that those = programmers either don't know any better, or are actively choosing to = cause harm to all the PHP community and all its collective code across = the land. Maybe there are very good reasons developers actively prefer to use = static classes instead of namespaces? And if you actively try to = discover those reasons, maybe you can consider discussing how to address = them rather than just dismissing the desire to use them as developers = choosing to use "anti-patterns?"=20 Are there missing features the language offers users of static classes = that it does not offer namespaces? Are static classes more ergonomic to = use than namespaces? Or are there other reasons to use static classes = over namespaces? (Note for this email I am not taking a position pro or = con, I just posing the question.) If collectively you discover there are gaps between namespaces and = static classes, maybe the solution is to fill those gaps instead? Maybe = that means improving namespaces, maybe that means adding static classes, = or maybe it means some unmentioned 3rd option? Either way such an = approach is likely going to be more productive than a = quasi-religious/political rally with extremists on both sides protesting = the other. That is, unless those of you participating really prefer to have = divisive debates that result in no positive outcomes, in which case, = knock yourselves out. =F0=9F=A4=B7=E2=80=8D=E2=99=82=EF=B8=8F -Mike