Love the simple presentation in these videos. Solid minor release from PHP, Negative index counting _should_ be more obvious now rather cause bugs but lets see ¯\_(ツ)_/¯
I think that all these three major features are valuable and significant, though you mentioned static code analysis tools such as phpstan to validate the code, talking about #[Override], there are many projects out there that don't or can't use phpstan at its full potential or on all parts of their code, therefore I assume having such feature is a great benefit to have, from PHP 8.3 and more we know that the language itself prevents having pain in the neck silence errors on the code mainly when we use a third-party package.
@@x0r1k This isn't true. Python doesn't have a main event loop either but it still has great async/await features. Same with C#. You can just make your own event loop 🤷♂🤷♂ If PHP added async/await they would probably just add an asyncio builtin module like Python has.
Sorry, but the explanation regarding negative indexes in arrays is incorrect. Starting from PHP 8.3, when adding a new item to an array with a negative index, the new item's index will be 0. However, this behavior does not apply to earlier versions of PHP.
Hope this "override" java sh@t won't be necessary to use. I (and a lot of others) don't see any point for it. It seems like in our easy-to-do PHP Kingdom was brought a cart of unnecessary complications. Hope there will be no more java in my beloved PHP
New video is here about breaking changes and deprecations in PHP 8.3: ruclips.net/video/mGf_ShkSdmE/видео.html
Make sure to subscribe! Next week I'll post a video about all deprecations and breaking changes in PHP 8.3: ruclips.net/video/mGf_ShkSdmE/видео.html
PHP is life!
Thanks for your useful reviews :)
Love the simple presentation in these videos. Solid minor release from PHP, Negative index counting _should_ be more obvious now rather cause bugs but lets see ¯\_(ツ)_/¯
json_validate looks useful...
yep it does.
Thanks for delivering.
Readonly clones!
I think that all these three major features are valuable and significant, though you mentioned static code analysis tools such as phpstan to validate the code, talking about #[Override], there are many projects out there that don't or can't use phpstan at its full potential or on all parts of their code, therefore I assume having such feature is a great benefit to have, from PHP 8.3 and more we know that the language itself prevents having pain in the neck silence errors on the code mainly when we use a third-party package.
static analysis can not catch overrides, it doesnt know intent
I want PHP 9 to have async/await. I know its unlikely, but a man can dream.
What's the difference between that and fiber?
it's impossible, PHP doesn't have main loop. You need something like swoole for that.
@@x0r1k *Sad PHP noises*
Just switch to Python already. That’s what PHP is trying to become now anyway.
@@x0r1k This isn't true. Python doesn't have a main event loop either but it still has great async/await features. Same with C#. You can just make your own event loop 🤷♂🤷♂ If PHP added async/await they would probably just add an asyncio builtin module like Python has.
Negative integer offsets: are they int|float, or just string (as i would expect it to be).
First! There is no link to the blog post in description :)
There is now :)
I would expect an array index of -5 to be illegal in the first place.
Sorry, but the explanation regarding negative indexes in arrays is incorrect. Starting from PHP 8.3, when adding a new item to an array with a negative index, the new item's index will be 0. However, this behavior does not apply to earlier versions of PHP.
I think that's what I said, what do you think is incorrect?
Hope this "override" java sh@t won't be necessary to use. I (and a lot of others) don't see any point for it. It seems like in our easy-to-do PHP Kingdom was brought a cart of unnecessary complications. Hope there will be no more java in my beloved PHP
Have they figured out lexical binding yet?
Nope.
I don't get why ppl wants to push to add bug in a working language ¯\_(ツ)_/¯