Python vs. C#

Michele Simionato mis6 at pitt.edu
Sun Aug 10 10:16:26 EDT 2003


Brian Quinlan <brian at sweetapp.com> wrote in message news:<mailman.1060482616.14896.python-list at python.org>...
> 4. forcing everything into a class is stupid e.g. does anyone really
> like 
>    writing Math.sin(x) over sin(x)?

I always have thought that putting everything in classes was stupid
from a boilerplate point of view; however, it is stupid even from an OOP 
point of view. Having the possibility of defining functions outside
classes is quite useful, for instance in the implementation of multi-methods.
Thinking that OOP means "everything is in a class" is a pretty naive
point of view, IMHO. Also, I feel OOP in Java to be pretty weak as compared 
to Python (I am referring to multiple inheritance, metaclasses, etc). Dunno
about C#, but I am assuming here that it is on the same foot as Java.
Anyway, even if C# was better than Python (which I strongly doubt; if
speed is a concern, notice that Python has Psyco, Pyrex, SWIG, Boost,
etc. etc.) I would not waste my time in learning something which could
disappear in few years (Microsoft's policy in supporting programming
languages is well know).

Just my $0.02,


                               Michel




More information about the Python-list mailing list