Re: [RFC] [Discussion] Bound-Erased Generic Types
| From: | Rowan Tommins [IMSoP] | Date: | Tue, 12 May 2026 12:41:40 +0000 |
| Subject: | Re: [RFC] [Discussion] Bound-Erased Generic Types | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-130851@lists.php.net to get a copy of this message | ||
On 12 May 2026 13:01:44 BST, Seifeddine Gmati <azjezz@carthage.software> wrote:
>
>The audience for native generics is the same audience that already
>uses docblock generics, which is the same audience that already runs
>SA.
This is an assumption that a lot of your reasoning seems to be based on, and as I've said
already, I think it's a false assumption.
As soon as PHP ships native syntax for generics, an entirely new set of users will hear about it and
try to use it. Their experience is going to be shaped by what *PHP itself* does with that new
syntax.
I would also argue that the flipside applies: if the audience for the feature really is existing
users of third-party SA tools, then it shouldn't be shipped as part of php-src. The language
should only provide the building blocks for those tools to work with - and attributes seem perfectly
suited here.
It's not the job of this list to create standards for what attributes third-party tools
support.
Rowan Tommins
[IMSoP]