Hi On 2/28/25 23:52, Alwin Garside wrote:
Anyway, I would love to try and push this idea forward – either by contacting Kacpar, or writing my own RFC – and have a shot at implementing a proof of concept, but first I would like to get a feel for whether this proposal would find much footing here.
I guess the pattern matching RFC could be the solution to what you are looking for and I suggest to have a look:
https://wiki.php.net/rfc/pattern-matching and https://externals.io/message/123701 Best regards Tim Düsterhus