On Wed, Oct 18, 2023 at 10:29 AM Brandon Jackson <brandonja...@gmail.com>
wrote:

> > You may be using them and be totally unaware that you are using them.
>
> Emphasis on that. Take promises for example. Anyone using libraries
> that incorporate promises either are using fibers or will likely be
> using them in the near future. And I'd say that one pattern is
> probably used enough to be considered more than just a corner of php.
>

If you have 5 developers dealing with issues originated from Fibers and a
billion developers using it oblivious that they are using it, why
`array_first()` , a function targeted at a billion developers, needs to
cater for issues being faced by 5 developers?

I don't mean to discredit/reduce/invalidate the work/efforts that
developers working with Fibers encounter, but my point is that if you're
using Fibers without knowing it, then any inner problem of Fibers do not
mean anything to you as the developers providing the library/functionality
will have to find ways to avoid exposing an API with broken behavior.
Whether today or 1 year from now 100% of PHP code will be taking advantage
of Fibers or not is irrelevant to this discussion.


-- 
Marco Deleu

Reply via email to