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 '
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
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
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
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
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