Come on PHP has so many shitty things, but even something basic like this is still not in the lanuage itself?
Come on PHP has so many shitty things, but even something basic like this is still not in the lanuage itself?
Because if yes, thats just ugly and a hack/workaround.
I was not precise enough about the exact version of it, fair, but my correction did not change my opinion on this topic.
And the PHPDoc stuff is old, it was normal to write them everywere 11 years ago and still today you have to write them for some cases.
Its still inconsistent and stupid.
Including generic type arrays which is not supported.
ooh wait, you couldn't be more wrong. Pikachuface.png
You remember when HHVM / hack came out from Facebook? Besides the fact that it was quite a dick move from Facebook to bring it out and then stop supporting it, it pushed PHP to take performance temporarily serious and there was so much air in it.
But the standard library is still inconsistent as hell, type system is still garbage especially mixxing strict and non strict.
The concurrency implementation? Has to be fixed again by frameworks.
And yeah i mean the critisism of my original comment stands as well and thats just an eye sore.