Re: [RFC] [Discussion] Bound-Erased Generic Types
| From: | Lynn | Date: | Fri, 15 May 2026 20:33:48 +0000 |
| Subject: | Re: [RFC] [Discussion] Bound-Erased Generic Types | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-130900@lists.php.net to get a copy of this message | ||
On Fri, May 15, 2026 at 6:44 PM Nicolas Grekas <nicolas.grekas+php@gmail.com>
wrote:
>
> not so much - and only transitory for the libs that care about this - vs
> no similar path in the proposed RFC as is:
>
> class Foo#<T>
> implements Baz#<U>
> {
> public do(
> #<T> // <- this could be a way to address your concern Zebulan -
> for Larry, that's already what we do for attributes on args
> DateTimeInterface
> $bar,
> ) : List#<string>
> {
> // [...]
> }
> }
>
Would it be an option to add both variations, where #<...> functions purely
as forward compatibility?