Is there a specific context for this question? Are you considering PHP v.
Python for some MW tool? If so I would include that context, because it
makes answering the question much easier.
As for answering the question of Python v. PHP, I like to look at languages
more from the feature comparison than from the library comparison. In other
words, sure it's nice that PHP has array_ukey_uassoc (or whatever it's
called), but you could just implement that natively if you really wanted to.
From the feature perspective, as already mentioned,
Python has a much
better OOP implementation than PHP. It supports operator
overloading,
multiple inheritance, and metaclass programming. These are all extremely
useful in designing objects that behave like actual types. On the other
hand, Python doesn't support member protection (private/protected
properties), pure virtual functions (aka, abstract functions).
Aside from that, Python also supports named function parameters (as well as
named variadic function parameters) and decorators. Combining all of the
above, I've found Python to be a significantly more useful language for
creating applications that are sanely designed.
*-- *
*Tyler Romeo*
Stevens Institute of Technology, Class of 2016
Major in Computer Science
www.whizkidztech.com | tylerromeo(a)gmail.com
On Sat, Jul 27, 2013 at 3:20 PM, George Herbert <george.herbert(a)gmail.com>wrote;wrote:
You forgot Erlang, for those programming flow
management... 8-)
But yes, this is an open ended rathole...
Not good for this list, probably.
George William Herbert
Sent from my iPhone
On Jul 27, 2013, at 11:55 AM, Yuvi Panda <yuvipanda(a)gmail.com> wrote:
Can we all just agree that haskell, clojurescript
and INTERCAL are the
best ever, and move on?
--
Yuvi Panda T
http://yuvi.in/blog
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l