5
submitted 5 months ago by librebyte@lemmy.ml to c/librebyte@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] limer@lemmy.ml 1 points 5 months ago

Yield is perhaps the oldest and least used keyword on the php ecosystem. I went through several large code bases trying to see how it’s used, and it really wasn’t that much.

I think this is because it’s one of those keywords whose expected usage is covered by other solutions

[-] librebyte@lemmy.ml 2 points 5 months ago

To be clear yield was introduced in PHP 7... and of course you can implement the same functionality using iterators but with more coding, today also we can use fiber for similar...

[-] limer@lemmy.ml 2 points 5 months ago

I have not used fiber much but read the docs earlier and liked it

this post was submitted on 15 Feb 2026
5 points (100.0% liked)

LibreByte

289 readers
2 users here now

Tecnologías libres para la comunidad.

Puedes enviar post a esta Comunidad sobre Tecnologías Libres en Español o Inglés.

This community will be in stand by from December 20 to January 20

founded 2 years ago
MODERATORS