View Single Post
  #9   (View Single Post)  
Old 4th February 2010
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

PHP doesn't handle errors very gracefully, personally I prefer the way Python does things by just throwing an exception and exiting whenever something unexpected happens. Which is different from PHP which tried to fix things and run anyway unless it's a really gross error ...

Another thing I dislike about PHP is that it seems to be a rather directionless language. Features and "enhancements" are added almost at random, a prime example is the GOTO feature someone added for PHP6, and then someone else filed a bugreport titled PHP now includes GOTO ...
The response by the PHP devs?
Quote:
goto hell;
Professional ...

Again, Python does this much better with PEP (Python Enhancement Proposal). Not only does this force people to actually think before they add a feature or module, it also filters out many features that are not particular great ideas to start with, as well as create an atmosphere of positive criticism.

In many ways PHP is like Linux, and Python is like BSD ...
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote