PHP 8.1.0
php.net
PHP 8.1.0
1–10 of 286 posts
Re: PHP 8.1.0
#2Re: PHP 8.1.0
#3Re: PHP 8.1.0
#4I haven't written PHP in years but I get the feeling from this release that they are taking inspiration from TypeScript and JavaScript.
Re: PHP 8.1.0
#5I haven't written PHP in years but I get the feeling from this release that they are taking inspiration from TypeScript and JavaScript.
Re: PHP 8.1.0
#6Re: PHP 8.1.0
#7That's an interesting contrast to Python where the need to use "value = await fn()" v.s. "value = fn()" depending on whether or not that function is awaitable causes all kinds of API design complexity, all the way up to the existence of tools like https://github.com/python-trio/unasync which can code-generate the non-async version of a library from the async version.
Re: PHP 8.1.0
#8I haven't written PHP in years but I get the feeling from this release that they are taking inspiration from TypeScript and JavaScript.
Definitely some JS influence plus a little Swift and Java. PHP seems to be evolving faster than it has in years
Re: PHP 8.1.0
#9I haven't written PHP in years but I get the feeling from this release that they are taking inspiration from TypeScript and JavaScript.
On the other hand, though, PHP’s always tended to be a borrowing language that accumulates features from elsewhere, so there probably is some TS influence.