Re: [PHP-DEV] "Reader" as alternative to Iterator

2017-07-02 Thread Andreas Hennings
Well, on a current project I made an attempt to write different adapters in userland. I finally decided that the clutter is not worth. So for this project I wrote everything as "readers", and not as iterators. With a native solution, one could do this: function generate() { yield 'a'; yield '

Re: [PHP-DEV] "Reader" as alternative to Iterator

2017-07-02 Thread Sara Golemon
On Sat, Jul 1, 2017 at 1:38 PM, Andreas Hennings wrote: > Hello internals, > (this is my first email to this list, hopefully I'm doing ok.) > Welcome to php-internals! > Establish a new interface in core, "Reader" or "ReaderInterface" (*). > This interface has only one method, "->read()". > The e

[PHP-DEV] "Reader" as alternative to Iterator

2017-07-02 Thread Andreas Hennings
Hello internals, (this is my first email to this list, hopefully I'm doing ok.) (I sent this message before, but I think it was rejected due to html/multipart and lack of [PHP-DEV] in subject) Background / motivation

[PHP-DEV] "Reader" as alternative to Iterator

2017-07-02 Thread Andreas Hennings
Hello internals, (this is my first email to this list, hopefully I'm doing ok.) (I sent this message before, but I think it was rejected due to html/multipart) Background / motivation: Currently in PHP we have an in

[PHP-DEV] "Reader" as alternative to Iterator

2017-07-02 Thread Andreas Hennings
Hello internals, (this is my first email to this list, hopefully I'm doing ok.) Background / motivation: Currently in PHP we have an interface "Iterator", and a final class "Generator" (and others) that implement it

Re: [PHP-DEV] Extensions License

2017-07-02 Thread Scott Arciszewski
On Mon, Jun 19, 2017 at 10:03 PM, Christopher Jones < christopher.jo...@oracle.com> wrote: > > > On 15/6/17 10:34 pm, Johannes Schlüter wrote: > >> On Do, 2017-06-15 at 11:06 +0200, Nikita Popov wrote: >> >>> On Tue, Jun 13, 2017 at 8:23 AM, Remi Collet >>> wrote: >>> >>> Hi, All extens