Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124400 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 D32381A00B7 for ; Fri, 12 Jul 2024 00:14:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1720743352; bh=1qz4Ta0c6ma37kIBFs8C5jrKf3hX483C3q+Q822R7c8=; h=Date:Subject:To:References:From:In-Reply-To:From; b=lpVOPZCqhNxiQqfF4TSd/p19iEAbDzrJFZjiB7Cl3MQeUcbwgMGfxXzUZBrbx7b3V R/m1VuZ/IOzi3oi1WKYUJn606BO2CZRZln/IljvskIHdStrD2RnhLboyDULq1HY+Hy 4WITq2VwmaAQ7KDt0l8mBiSwAGS38kSZ4NzB4nMl4CkTJk92+AhIxfN3x1oDUBR1We GA77nP3ThFpoekZTrtFIkd2Az+hVXRQINlpYMbzCKgxvPMmvEEFFCY0JIVVHnNGl7J aJvxDjgOt8VdjoktnEzXq1GW6m7U3E0XDJcJD7kuJOytgkOhi9o89XOqV4J4HlR418 8JqhCVmX5jxIA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6226A180084 for ; Fri, 12 Jul 2024 00:15:51 +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,HTML_MESSAGE,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-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (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 ; Fri, 12 Jul 2024 00:15:50 +0000 (UTC) Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4266fd39527so10667825e9.1 for ; Thu, 11 Jul 2024 17:14:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=scriptfusion-com.20230601.gappssmtp.com; s=20230601; t=1720743263; x=1721348063; darn=lists.php.net; h=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=Dke8wLv3R7zJ6yr17p3FMRSpctFXv2O4X0Pd5JekEfI=; b=XVCvQkHtNwsygghNAK3FQqVMEfQUim2awiROeh4kX2m0cPcQErGKGXalYBsqP9hg3g mtKPych4pzDX/YX4sMN8Cw3uvgHyAgIZNF/+8gimi2HMEkTvE2mpjhePJa5YIiVo4SBm yddgX0i0tVWv//lKnJ0jnSfIrttyVZhsYFm9f9j5QZNhS9zcKWH1SyOab3UDo9wSZLw4 ENTF5MSyZnZdsrzGt4C/NXGKKH/csca+A6f4GoN6wUOjXv8Dcus7UJz7ldssesob793t 7MYitg0611U4NCs/jVYknvSoS43LngSlbByzltUemMGW00Mt3zDQwqwJny/b6HzIedtf MMGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720743263; x=1721348063; h=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=Dke8wLv3R7zJ6yr17p3FMRSpctFXv2O4X0Pd5JekEfI=; b=MA8ScekOpaI5OrzxyhbA5ln6hJQbZZFYE1NRGhA2FEqXb2RgoK0ttVSbqpthjNLf3l C7eISzgzAxHvwU6YYzh6VYYYdG3qomkw+CtjEfCCftInYB6KC2E7KPfeJZKACETFmIvO YRV2+OSwsRceRglkTH68qeiQIWg0SwjZTGB3d9gZfgmPmg2uRZVmHuckMwYIphKQKwk9 NJU4PZmWdlIHTbbdfb+TWeeG81YWc9VQv3mApgq4xaUFxCLgSOIztMFzLYE+LoMiQCnk xUrt7izlaJ/4Ew8mkvdVi0EVAAEU2l77k+kH2ra1cAYp/E60mFCXDe3ChP/UKNBY/1MK QHQQ== X-Gm-Message-State: AOJu0YzxIoYOY/+rkfzwtS2pd9hk4I0ZoD2YFd7EBoX8BssPRwMohXrp iETHlJTGx8qQDCP/I//+mgoaPHi+fFhZgki+PUlBxOL3N91i7lxZUTdRf1/jdyQbHQMm0BDjopq oyMc= X-Google-Smtp-Source: AGHT+IFRKUYXsmO8IslF4e0fNCA4OgN1Ch4bZnnV24oSNJOoAW0hUTr2s2Ual6GD7kL2W10nnhbcQQ== X-Received: by 2002:a05:6000:402c:b0:368:75:26d1 with SMTP id ffacd0b85a97d-3680075279fmr763746f8f.4.1720743262527; Thu, 11 Jul 2024 17:14:22 -0700 (PDT) Received: from ?IPV6:2a01:4b00:bf09:5101:bde8:fe1f:b7e6:2208? ([2a01:4b00:bf09:5101:bde8:fe1f:b7e6:2208]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-367cde7dedfsm8975365f8f.24.2024.07.11.17.14.21 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Jul 2024 17:14:22 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------zPyGM4CX0fMD8CNJfEOTOCwh" Message-ID: <132b86de-f571-4611-8b9b-35ae107901f0@scriptfusion.com> Date: Fri, 12 Jul 2024 01:14:20 +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] [RFC] Static class To: internals@lists.php.net References: <4596aa73-cfd4-2292-7191-2839a5bab695@php.net> Content-Language: en-GB In-Reply-To: <4596aa73-cfd4-2292-7191-2839a5bab695@php.net> From: bilge@scriptfusion.com (Bilge) This is a multi-part message in MIME format. --------------zPyGM4CX0fMD8CNJfEOTOCwh Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 25/06/2024 16:17, Derick Rethans wrote: > we shouldn't be encouraging static classes as a bag of static functions, that ought to be just namespaced functions. > > cheers, > Derick Can someone clue me in as to why grouping related functions in a file with nothing but a namespace is strictly better than those same related functions grouped as members of a class? It doesn't have to be Larry or Derick, because even though they have expressed this view, I am aware they are not the only ones whom hold it. Anyone who can shed some light on this perspective is welcome to comment. Cheers, Bilge --------------zPyGM4CX0fMD8CNJfEOTOCwh Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
On 25/06/2024 16:17, Derick Rethans wrote:
we shouldn't be encouraging static classes as a bag of static functions, that ought to be just namespaced functions.

cheers,
Derick

Can someone clue me in as to why grouping related functions in a file with nothing but a namespace is strictly better than those same related functions grouped as members of a class? It doesn't have to be Larry or Derick, because even though they have expressed this view, I am aware they are not the only ones whom hold it. Anyone who can shed some light on this perspective is welcome to comment.

Cheers,
Bilge

--------------zPyGM4CX0fMD8CNJfEOTOCwh--