Re: RFC: Namespace-Scoped Visibility for Methods and Properties
| From: | Derick Rethans | Date: | Tue, 11 Nov 2025 11:36:57 +0000 |
| Subject: | Re: RFC: Namespace-Scoped Visibility for Methods and Properties | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-129196@lists.php.net to get a copy of this message | ||
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