Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129196 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 8EBBC1A00BC for ; Tue, 11 Nov 2025 11:36:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1762861024; bh=NIdzOmHy8ZhlAjfeUJXJxpStj1M5m30Y+ELCZrJSRE0=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=VjAyxVTBkj2OTS/AXPi8oeyVurZQVXOGh2qPeoo/2hIFsCJDCbu9/O/BsVgqO3rrP tC1WqfF3Ghw+Nk7IAzsKCqwGeYj1WANcehRCjmJ4cdb4KH8u3vB7f0ouIDFNP/Aqek rQ1U5ihVlqbW69D5CPGJwLCJd8h7TaE9PhRr57FYy2ys6S9ScjlI23ZL8apdd1550Q JsH/6CeoATmaTpvv3XKNn0V1JaaTiLMscBlvOD1XtQww1qKTxbYlnJLJDCETF/Wuy3 /w7vr6ftMLV1Qeb0Z0Nn4trVkAppm5bbVim35qjXNC7x2yTVCNSnyVMwZF5J/2E2AF SM4yLtxMeR9nA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9771E18003E for ; Tue, 11 Nov 2025 11:37:03 +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=3.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_PASS, SPF_SOFTFAIL autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from xdebug.org (xdebug.org [82.113.146.227]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 11 Nov 2025 11:37:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1762861017; bh=NIdzOmHy8ZhlAjfeUJXJxpStj1M5m30Y+ELCZrJSRE0=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=SbQoyOHH5nvqO6PADhhHbEK5nO2dqBdd+dd/STRU1PcKQn3C14xHfzK9yVcSJK2zM DEY08J9OveQXtbFxX8j9QYSUSYgaQBNl0nvhJ+z2MbQSi/7bSOw0J3Lb2EClbrY25m tPssWMA8S6jYUewX+e9YRuaNuvFch5REQI3EKlfiobXjjcH3SF8OMMdVZZLrQ01pdd ufugfx1efSkDFcK1fE4S+mRkAflwvi4rkGUejya5LXtxw23mqrh2yiomVrK3p+XGFW MBHXrMWZ3OgA1e4XNesOzLJ5WoTKdIHzPLY5xw1pkKzcTkwbZK15GRIS6mXFAL6Bof mmducORDmNCsw== Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 769B210C46A; Tue, 11 Nov 2025 11:36:57 +0000 (GMT) Date: Tue, 11 Nov 2025 11:36:57 +0000 (GMT) To: "Rowan Tommins [IMSoP]" cc: internals@lists.php.net Subject: Re: [PHP-DEV] RFC: Namespace-Scoped Visibility for Methods and Properties In-Reply-To: <72f90052-fa19-415c-9f5a-ae75275fd030@rwec.co.uk> Message-ID: References: <72f90052-fa19-415c-9f5a-ae75275fd030@rwec.co.uk> Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII From: derick@php.net (Derick Rethans) On Sat, 8 Nov 2025, Rowan Tommins [IMSoP] wrote: > To spell those out, the prefix version could look like this: > > namespace Acme\AuthLib\Somewhere\Deep\In\Package; > // ... > #[NamespacePrivate('Acme\AuthLib', includeChildren: true)] Whatever the way to define a prefix is going to be, I disagree with that being done through attributes. Nowhere in the language do these annotations (yet) interfere with how code can be run. cheers, Derick