Re: [RFC] Pattern Matching

From: Date: Tue, 02 Dec 2025 09:13:36 +0000
Subject: Re: [RFC] Pattern Matching
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-129504@lists.php.net to get a copy of this message
Hi Larry and Ilija, Le lun. 1 déc. 2025 à 22:37, Larry Garfield <larry@garfieldtech.com> a écrit : > > Hi folks. Ilija and I would like to present our latest RFC endeavor, pattern matching: > > https://wiki.php.net/rfc/pattern-matching Thanks for this RFC, it looks really great! I see that resources are never mentioned. I know that a lot of resources are being converted to opaque classes in recent versions, but they still exist. Would it be possible to use the "resource" type with pattern matching, e.g. $r is resource? I would assume that the answer is yes because the RFC mentions the support of `$foo is iterable`. — Alexandre Daubois

« previous php.internals (#129504) next »