Hi Larry and Ilija,

Le lun. 1 déc. 2025 à 22:37, Larry Garfield <[email protected]> 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

Reply via email to