Re: [Pre-RFC] Lazy iterator_* functions for iterables

From: Date: Mon, 23 Nov 2026 01:43:02 +0000
Subject: Re: [Pre-RFC] Lazy iterator_* functions for iterables
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-133197@lists.php.net to get a copy of this message
Hi Paweł On 22.11.26 12:26, Paweł Wankiewicz wrote:
I'm Paweł, and this is my first post here. Before writing an official RFC, I'd like to gather your feedback on a set of iterator_* functions for iterables.
Small heads-up that this has been on my TODO list for the longest time. I was planning on collaborating with Tim Düsterhus on a similar proposal. The main challenge is to build something with acceptable performance, particularly if compared to a manual userland loop (calling into userland code from a C function is comparatively expensive). Hence, we want to compile iterator calls directly into the equivalent userland code whenever possible. We can discuss collaborating if our vision for the feature aligns, or we can each proceed with our own RFC.
3. Is there enough interest to move forward with a formal RFC? If so, could    someone please grant wiki RFC karma to my account (pawell67)?
I granted you RFC karma either way. Good luck! Ilija

« previous php.internals (#133197) next »