Re: RFC: Single-Expression functions

From: Date: Tue, 27 May 2025 07:08:02 +0000
Subject: Re: RFC: Single-Expression functions
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-127474@lists.php.net to get a copy of this message
As Tim said, it needs at least a 2 week discussion period. Could you share the reference? Did I miss it or did I not see a PR linked from the RFC? While technically having an implementation is not a prerequisite of an RFC, it is strongly recommended. (Also, having written the original patch, I'm curious if you're doing it the same way I did. It also may be sensible to use the compile step rather than strictly the lexer; moving pipes from strictly lexer to a compile step was a very smart move, for instance, as it simplified a lot of the ancillary behavior around debugging and error messages.) Here it is. I've added the link to the RFC. It was one of my first PRs in PHP, so I did the things I only learned from there. Lexer still should be adjusted to accept => syntax. ---------- Best regards, Dmitrii Derepko. @xepozz

« previous php.internals (#127474) next »