Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129155 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 lists.php.net (Postfix) with ESMTPS id 6AE711A00BC for ; Sat, 8 Nov 2025 20:32:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1762633963; bh=moXwywdj+RcRVzrNHP5S5xQiscLZtqB24ItiyZpbbrc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=A2vpFulNr6rweq4+zkl7jauAZxiZPpkNzqC8vuyY3kISAkOoVgBUzZAC/ju3i51sT iz1zqtU02TpJtAqzciVVrNxdwQjhpNXPmZYK2hq+H20bs4igpLTHqMJSUZOiJZSeiv vHISlluGFwnoBbm4WoZrhJfl08qrmMOAFRvWTa8JjRakEwwjRZw1aIbSPW/L1aJ4kb F+QX1nAfT4Wl6mxueM86vs0GKkHmmQpvxxMv/Bsvr5efYTRNBrTpCvco0N3MaSSvuv 2kwXO/LXozIPRr8vkhStP2is4LrfG6zePGlbD52Tj36yPQaAlwgXETqQ3jeytN3DZm HItbmprd7RcxQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 212B3180719 for ; Sat, 8 Nov 2025 20:32:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) 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 autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-yx1-f52.google.com (mail-yx1-f52.google.com [74.125.224.52]) (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, 8 Nov 2025 20:32:41 +0000 (UTC) Received: by mail-yx1-f52.google.com with SMTP id 956f58d0204a3-63fb5a43d0aso275265d50.3 for ; Sat, 08 Nov 2025 12:32:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1762633956; x=1763238756; 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=moXwywdj+RcRVzrNHP5S5xQiscLZtqB24ItiyZpbbrc=; b=IYgNc1E3Lw39LxYQx2WJi+VLfo5SSUsM1nuUj86Zw5pcopZSCgv5U5nbMv2RlhiWh+ vk3nTgYgkx78hEJu2Obn9LueGBRMQXUVWOlf0Wj8Rq6Be8DDcNaRtWmZ3snXUwIkFUhP ylZ9tpFA5skoxbO1u+O3Tdtbflw9y6SB/HBeV/S5b3I4n4vS8DaLCl7g3EQt6p12XJA/ 6UfC713I0wxVkddAYGzkOEy9acrN7e1MBJiu7BGXL2u9NryeUX02Mg2pG1KadE/L/PXy /Uop20tUBrPcAdgAKKOoMeOtV1JYxJnvXNX2szNwPGlihe15WCslf1LQTKh6BRcY82aY Ufbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762633956; x=1763238756; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=moXwywdj+RcRVzrNHP5S5xQiscLZtqB24ItiyZpbbrc=; b=k4CgVo39kidC0GK9+B0G7rU7cymwnuWOgd+PteGNXdFHjoC/UCrdFFU2GQGhxw9aTw COm0coV6BuolKyFef8BL+njnJUSsIecEvXgyl/K+P5IULhBSHqPqxDgr2RdpVEdIn7SU Ou6pKLGxi11yvTDT34qXdJOFplZuaze5xV/f0qXkdusAp6qf+mxp1RwoJGVA74Q76L6q EkTlO0ZV90s0A6LB1gRxUcYl8fR/tbVd7Fm3RdOl7TCN0qWq5559DD7WdFuWvw+bl+0t 8ESldArqG7VLCx2FLN9Nmoov0yVcSP9cAYcnAeMB7SxleWU3Rvd72hadb2ouuOky6uZM YhvQ== X-Forwarded-Encrypted: i=1; AJvYcCW1GNNA/s/2hy273X58NbUedRkGtLS99NffnAn6mMl8vEmhs0gz8aQ89tnfx8eyv30WC9OxWd5HSPA=@lists.php.net X-Gm-Message-State: AOJu0YxxOXx4iprfyTKmAKg8eOPQQbAU183z/A7EbEkE2rJBJL61MSPh 1bUBg7LBB5zcT97pU5y1hQzc3qy52Xjpxs7F5am+6KRZDKu0YKL1F5xICDRsttCF9CBn4M1Hiiz SnuCFydLjAgnMDvFbQpgKUvtksBjMxaGdVA== X-Gm-Gg: ASbGncsiO2CEFzFrB0mBCae3rzZP1yWldnrhPOpTB+wg+XjieT+1R9jXUNR8aYh+da4 eNTKBPiJA4M8uaQAmmwvZRuZac5tqmFcjLjmftZsHE+EBioGVCGZkEiPTT+GBJTExmsa2R8xKt7 SAdReCVsh1jRgs8RyEYGZuL3UjrSrShqykMOSGk8EubzaMCZW1xO12qLEL3ifGRgYPgUtwy67Ke yKlcExrkYZDEfUylONnXpoI6NLEn6XzN/k5mZqWyDYsBXmAFgxv6zBnq6vSEhPOB+UBQ2VoZgtf G6Rm2S4V+cT4XQ1r2rhIxd6kaH31 X-Google-Smtp-Source: AGHT+IExCqJqQt7VYsub11XthAFOPD2MLkMU3A23gblWKyiHuCf+vzurMVK9Zoeh+HrOmBuTaaC8rGivndiAhqYNNfY= X-Received: by 2002:a0d:d384:0:b0:786:87b1:960a with SMTP id 00721157ae682-787d536c328mr18126307b3.1.1762633956023; Sat, 08 Nov 2025 12:32:36 -0800 (PST) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 8 Nov 2025 17:32:25 -0300 X-Gm-Features: AWmQ_blkArkI9UrUwCkyzMH-ZM-EXuelCuGlqpmgY21bY0IJyyd6xss6sawy-Fo Message-ID: Subject: Re: [PHP-DEV] RFC: Namespace-Scoped Visibility for Methods and Properties To: Rob Landers Cc: Faizan Akram Dar , PHP internals Content-Type: multipart/alternative; boundary="000000000000d1611a06431b32a2" From: deleugyn@gmail.com (Deleu) --000000000000d1611a06431b32a2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, 8 Nov 2025 at 17:18 Rob Landers wrote: > > > Sidenote: > When I proposed nested classes earlier this year, the conversation quickl= y > shifted into what "packages" or "modules" should mean for PHP, and that > ended up becoming a much larger debate. I=E2=80=99d like to avoid pulling= that > discussion into this RFC. It=E2=80=99s a related, but orthogonal topic an= d could > absolutely be explored in a *separate thread.* > > =E2=80=94 Rob > I understand the sentiment. I=E2=80=99ve participated in some of these deba= tes. It seems like reaching consensus is impossible because it=E2=80=99s not possib= le for a solution to be perfect and there=E2=80=99s no consensus in choosing the lea= st worst option. Unfortunately, namespace visibility, nested classes, class friendship and even some long debated performance optimizations which may or may not allow linking symbols and may or may not help Generics all sit around on finding a way to go from namespaces to packages. This alternative, to me, seems more likely to make things worse rather than better and I really hope PHP can figure out a package system. --000000000000d1611a06431b32a2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sat, 8 Nov 2025 at 17:18 Rob Landers <rob@bottled.c= odes> wrote:


Sidenote:
When I proposed nested classes e= arlier this year, the conversation quickly shifted into what "packages= " or "modules" should mean for PHP, and that ended up becomi= ng a much larger debate. I=E2=80=99d like to avoid pulling that discussion = into this RFC. It=E2=80=99s a related, but orthogonal topic and could absol= utely be explored in a=C2=A0separate thread.

=E2=80=94 Rob

=
I understand the sentiment. I=E2=80=99ve participat= ed in some of these debates. It seems like reaching consensus is impossible= because it=E2=80=99s not possible for a solution to be perfect and there= =E2=80=99s no consensus in choosing the least worst option.

Unfortunately, namespace visibility, = nested classes, class friendship and even some long debated performance opt= imizations which may or may not allow linking symbols and may or may not he= lp Generics all sit around on finding a way to go from namespaces to packag= es.

This alternative, to= me, seems more likely to make things worse rather than better and I really= hope PHP can figure out a package system.
--000000000000d1611a06431b32a2--