Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123909 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 1FF751A009C for ; Thu, 27 Jun 2024 00:59:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1719450051; bh=wBBctyZNu2ufbB3AhMIadaaBqrhFc0cZ/PPIdZT/a9k=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=NDvrMnR2ln6XhySH857BjGoOlYI4rOp1dQbuwxvnidpFMtN4qbGEKhRozsFqO/uZK RKB9x00h6Tm4BL1ZbXUiaGEDRSH/7uQLtNIkjF5BdNBmIzNd7TlVgeG/NZE5y/ayk0 WPbUnWzVeExKi7ooMYqhir/y49oa5QE185iT6xmI54wue5hgJpwxYJPycNH0ILtqFM 1E8TlyetCWnswaHqPm9FaWVSlKY2GlNKEUgYDegUUlxHl6gDKTEACkT0IssbZPSPE7 TMJhazHAM99umdwjrPtxl+HtxSiM32e8Im4diAOJHV7eSmW5CfsLX6PSfhkCwHF1Cu 2C3Q7/NifysZg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2771A1801E3 for ; Thu, 27 Jun 2024 01:00: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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,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-ua1-f43.google.com (mail-ua1-f43.google.com [209.85.222.43]) (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 ; Thu, 27 Jun 2024 01:00:50 +0000 (UTC) Received: by mail-ua1-f43.google.com with SMTP id a1e0cc1a2514c-80fc44234afso371961241.1 for ; Wed, 26 Jun 2024 17:59:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719449972; x=1720054772; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=r76W7mM/UU67cTjD1p/Omhh7O+7MYW86/rPl0BsHS3E=; b=DHq9FJ+w1i0OG0H5CApfPj9oRbMxM9l2Ivyryz9p5XdWUgKezagVwqdIpttkP09NVy NTi9hcNCoASO6IMprzCBzfwDKMbBqErQQT52dMSsIu6XnjwmqG3O8FmXQcm9w+SwkRhO YB+CmZZeGn1vuugJy9V3efRsCDy1kmUl2rkbRzkXPTg//dRGevsliKZKZzF+U8mWjkfJ vP6oz0b1Kw40nn5vhJLWttOtQgqZliMPTFvJbdmsXWdQ0TtRndQEsZqulS1okSMZ6XwB SGC2uAZHXKriciR9lNRIDplDQ2SQ4Vjcun8lS88En4wUvlgIyx0M3Q9J/cceI3codqOd Rv3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719449972; x=1720054772; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=r76W7mM/UU67cTjD1p/Omhh7O+7MYW86/rPl0BsHS3E=; b=M2FrwUZePEA6cdoIkUqaS7fTPVAzX82SFeobvWMofbTkUGaxJfF3o+rRUs6Q1+gyuY Ed8fzy/3jC4oRSjmtziiQQleutXxM2cnBXUYY1Jn8mZnQK+7y/GXlwHlKJzw0veIgyKB VhEjXEPFWzp0u2C0QGBkOz2iOy9gRUUjxkIa667UZKnnxsihH+3abFcLbF8noATNFNzD cZphjeQWQuzZijntS9Y9NGQ9BnS/UKyH+p3sn2t78ERasNz/952b2GtdNIrC7RQsS7gG ySztZbWaQ/ytuVUdCQIdfokbNsbjXfDqVg72jNj2TpIy8m/2fzZE6geXDALo/Y53SBtZ xR3g== X-Forwarded-Encrypted: i=1; AJvYcCX2vtBsgTyjwCghYNjZ26QvezwQa2xM/F5KNh2IIyP+yVK6SSoO8ddqFYCyXhfSsyEQ1Eofnhdxg6OfjjutgNUatSvanH6hEg== X-Gm-Message-State: AOJu0YxKhlXan/csEcOLqFBYfC6g7TGZQtn1LqjpKS+Q2pJDMPxjM3Wh V4O9f1z23JN/yE7xZVIxJ6vp69O5ExocFw6m6lYU6qNsKYUIPYu8gRGi8l6RfWwB0OoR65v5ojL 9FH21ktEXJtUbGD2vE6ETz0X8puM= X-Google-Smtp-Source: AGHT+IHP4ZCMqtX5JV+1ZOoGo2eqa8JTZ4kMDkUrK85XHUg5P7urei+wLSUu8g6B3RJTo11O8HtfM9VKFw/f36HK32w= X-Received: by 2002:a05:6122:411d:b0:4ea:f128:7adb with SMTP id 71dfb90a1353d-4ef6d891948mr9317304e0c.10.1719449972192; Wed, 26 Jun 2024 17:59:32 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 References: <4596aa73-cfd4-2292-7191-2839a5bab695@php.net> <397c5449-8e5d-e90a-371c-eae155cdfc5a@php.net> In-Reply-To: <397c5449-8e5d-e90a-371c-eae155cdfc5a@php.net> Date: Wed, 26 Jun 2024 18:59:20 -0600 Message-ID: Subject: Re: [PHP-DEV] [RFC] Static class To: Derick Rethans Cc: Chuck Adams , Larry Garfield , php internals Content-Type: multipart/alternative; boundary="000000000000cd39d8061bd4a4c6" From: lnearwaju@gmail.com (Lanre) --000000000000cd39d8061bd4a4c6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Jun 26, 2024 at 5:52=E2=80=AFPM Derick Rethans wro= te: > On Tue, 25 Jun 2024, Chuck Adams wrote: > > > > On Jun 25, 2024, at 9:17=E2=80=AFAM, Derick Rethans = wrote: > > > > > > Having read this thread, and the previous one from half a year ago, > > > I will do so too. In short, we shouldn't be encouraging static > > > classes as a bag of static functions, that ought to be just > > > namespaced functions. > > > > Which brings us back to the age-old problem that functions can=E2=80=99= t be > > autoloaded. Me, I want first-class modules, but until we have those, I > > have to settle for classes in the meantime. Scala/Kotlin-like > > =E2=80=9Ccompanion objects=E2=80=9D might be a good all-round substitut= e though. > > There has been some work done on function autoloading too: > https://wiki.php.net/rfc/core-autoloading > > cheers, > Derick > > My bad, I thought "top post" meant the same thing in mailing lists as it does in forums. I am now aware of my mistake and it won't happen again. Can we address my actual points now? Lanre --000000000000cd39d8061bd4a4c6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Wed, Jun 26, 2024 at 5:52=E2=80=AF= PM Derick Rethans <derick@php.net&= gt; wrote:
On Tu= e, 25 Jun 2024, Chuck Adams wrote:

> > On Jun 25, 2024, at 9:17=E2=80=AFAM, Derick Rethans <derick@php.net> wrote:<= br> > >
> > Having read this thread, and the previous one from half a year ag= o,
> > I will do so too. In short, we shouldn't be encouraging stati= c
> > classes as a bag of static functions, that ought to be just
> > namespaced functions.
>
> Which brings us back to the age-old problem that functions can=E2=80= =99t be
> autoloaded. Me, I want first-class modules, but until we have those, I=
> have to settle for classes in the meantime. Scala/Kotlin-like
> =E2=80=9Ccompanion objects=E2=80=9D might be a good all-round substitu= te though.

There has been some work done on function autoloading too:
https://wiki.php.net/rfc/core-autoloading

cheers,
Derick

=C2=A0My bad, I thought "top post" meant th= e same thing in mailing lists as it does in forums. I am now aware of my mi= stake and it won't happen again. Can we address my actual points now?

Lanre
--000000000000cd39d8061bd4a4c6--