Re: [Early Feedback] Pattern matching

From: 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 [email protected] 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


Thread (79 messages)

« previous php.internals (#123895) next »