5 ms·
If you could break backwards compatibility, what would you change?
by mattyb 16y ago
If you could break backwards compatibility, what would you change?
- robryan 16y agoI just mean the little niggling things people complain about like all the functions in the global namespace, inconsistent arguments, inconsistent error handling. I guess though a lot of PHP support comes from the deploy everywhere make minimal changes to old code ideas, so I can see why their quiet happy to not want to break to much old code.
- JoachimSchipper 16y agoWhat would be left would be hardly recognizable as PHP.
- randallsquared 16y agoI dunno... I think it would be essentially the same for new users (since they have to look up things anyway), and it would certainly feel like PHP...
- al_james 16y agoActually, I agree. I have often thought there is a space for a revamped PHP, with compatible syntax (because people know it) but with many of the niggles removed and a better core library.
- robryan 16y agoAccessible core libraries that are people are encouraged to use, stuff without a mess of dependencies to. You hardly ever seen introductions to PHP that encourage library use, it's mostly about rolling your own stuff.
- deleted 16y ago[deleted]
- JoachimSchipper 16y agoI don't think that is such a great idea - stuff like == vs ===, PHP's class system and PHP's namespaces is all questionable...