4 ms·
I got the same message on GitHub. Did you checkout the repo in order to read it? Personally, this is exciting news, but I'm not sure that PHP is ready for this
by arenaninja 12y ago
I got the same message on GitHub. Did you checkout the repo in order to read it?
Personally, this is exciting news, but I'm not sure that PHP is ready for this after 20 years. There's plenty of cleanup that needs to be done to userland naming conventions and parameter orders that in all likelihood won't get done anytime soon to avoid breaking BC
- frik 12y agoyes, you can also use the "Download Zip" button there: https://github.com/php/php-spec https://github.com/php/php-spec PHP ships with a lot of third party C libraries that are exposed in PHP with usually their original function names. Object orientation came with PHP 4 and later with PHP 5 the new better one (5.3+ with namespace support, traits, etc.). You can think of PHP as a mixture of C, C++ and Java for web development and CLI tools. I personally use all four languages, each one for specific purposes where the fit best. You can find function names like strstr in C, C++ and PHP (= indexOf in Java and JavaScript) - not a big deal.
- arenaninja 12y agoI'm at work so I was looking to peruse the proposal without downloading things. You can read it from PHP's git mirror: http://git.php.net/?p=php-langspec.git;a=blob_plain;f=spec/php-spec-draft.md;hb=HEAD http://git.php.net/?p=php-langspec.git;a=blob_plain;f=spec/p... I'm not sure that I would call PHP4 objects object oriented, as I remember it, it was all such a huge hack (down to being able to return null from a constructor). I only had to maintain some code like that at the tail end of PHP4's life, so I never found out whether that was how OOP was done in PHP4, or if it was a hack to simulate OOP in a language that didn't support it.