Hi,
On Aug 30, 2024 at 16:47:43, Claude Pache wrote:
>
> Note that the issue is not limited to Generators. For instance a Closure
> object is also json-encodable but not serialisable.
>
> IMO, every internal class (not just Generator) that is marked as
> non-serialisable, should also be non-js
> Le 30 août 2024 à 09:36, Philip Hofstetter a
> écrit :
>
> Hello,
>
> In the aftermath of an internal refactoring of an internal code-base to turn
> something eager into something more lazy using Generators, it occurred to me
> that while PHP refuses to serialize() a Generator, accidenta
On Fri, Aug 30, 2024 at 12:19 PM Philip Hofstetter
wrote:
>
> Username is pilif
RFC karma was granted. Good luck with the RFC!
Hi John,
On Aug 30, 2024 at 09:42:05, John Coggeshall
wrote:
> This seems entirely reasonable and I would welcome an RFC for it (unless
> someone has a better idea as to how to handle this case).
>
>
The other options I considered were to either materialize the Generator,
but given that they c
Hi Ilija,
On Aug 30, 2024 at 09:49:14, Ilija Tovilo wrote:
>
> To grant you RFC karma, I need to know your wiki.php.net username.
>
Username is pilif
Thank you
Philip Hofstetter
Hi Philip
On Fri, Aug 30, 2024 at 9:37 AM Philip Hofstetter
wrote:
>
> If you think this is a worthwhile thing to do an RFC for, I would kindly ask
> for somebody to grant me RFC karma, so I can start working on one.
To grant you RFC karma, I need to know your wiki.php.net username.
Ilija
Hello,
In the aftermath of an internal refactoring of an internal code-base to
turn something eager into something more lazy using Generators, it occurred
to me that while PHP refuses to serialize() a Generator, accidentally
running json_encode() over a Generator produces the worst possible result