Generators vs. Fibers
I haven't used fibers so far. But I read about it an I have trouble to understand what the exact difference is between generators and fibers. I am stuck with the idea, that php 8.1 brought kind of abstractions around "yield" What is the difference, exactly?
Dude!.. You made everything right
I wish he would be a little bit more specific what it is that has change so much that he quits.
Java and many other strongly typed programming languages give you the possibility to distinguish between "byte[]" and "string", where the type "string" usually "abstracts away" logic (e.g. for Unicode), which gets executed behind the scenes.
Now, since PHP has only "string" (so far (we are getting more and more typing, yay!)), it behaves as byte[] - e.g. hex2bin() or encryption related functions return or deal with raw byte[] data... A.k.a "string" in PHP for historical reasons. Changing the type "string" would break this. So, the quickest way to deal with Unicode strings without breaking stuff was to add mbstring. The other (more complete solution) would be to introduce strong typing, which would enable types like byte[].. we are not there yet
Typical PHP question 🤣
Agree