Live data from Hacker News

PHP 7.2.0 Released

php.net

1–10 of 80 posts

Re: PHP 7.2.0 Released

#4
post #2

Literally only object as new typehint, not the classname of the object? This doesn't really help much. https://wiki.php.net/rfc/object-typehint Looks like they went back into perl-mode

I actually have a patch and draft RFC for a classname type declaration, but I'm not sure whether to do anything with it.

Re: PHP 7.2.0 Released

#6
post #2

Literally only object as new typehint, not the classname of the object? This doesn't really help much. https://wiki.php.net/rfc/object-typehint Looks like they went back into perl-mode

[deleted]

Re: PHP 7.2.0 Released

#7
post #2

Literally only object as new typehint, not the classname of the object? This doesn't really help much. https://wiki.php.net/rfc/object-typehint Looks like they went back into perl-mode

You can do this in methods by putting the class name before the argument.

Re: PHP 7.2.0 Released

#8

It's weird for a bug fix I wrote to be top of the list of features. PHP 7.2 is not the most eventful release.

Yes, strange for a bug fix to be top of a list of features, however...

I don't agree that it's "not the most eventful" release:- libsodium being included into the core is a big tick in the box in terms of maturing as a language; modern - secure - cryptography out of the box.

Re: PHP 7.2.0 Released

#9
> Counting of non-countable objects

Sounds like fun :D

But actually, the RFC suggests to add warning, so nothing too special :-/

Re: PHP 7.2.0 Released

#10
What is PHP like nowadays? I know it has a bad reputation and a history of kitchen sink design but have they managed to tame it into something more sensible? Do the docs help steer developers away from legacy issues and common bad patterns?

Would anyone recommend it for new projects?

Post reply on HN