Re: [Early Feedback] Pattern matching
| From: | Richard Miles | Date: | Wed, 26 Jun 2024 21:14:47 +0000 |
| Subject: | Re: [Early Feedback] Pattern matching | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-123895@lists.php.net to get a copy of this message | ||
I wonder if this could be helpful in implementing Generic Classes?
https://wiki.php.net/rfc/generics
Interface Boxable {...}
class Box<T is Boxable> {...}
Taken from the RFC ^
Best,
Richard Miles