|
|
|
|
|
by chaostheory
6762 days ago
|
|
No it isn't. "Both are strong object-oriented languages": the key word (that is wrong) is 'strong'. Based on my examples Python may implement OO better than say Perl but it is NOT a strong implementation of OO compared to other languages. It's great to know how and why Python is the way it is, but at the end of the day you can give a million reasons, but the kettle will still be black. What you posted is like me explaining that (current) Ruby is not slow (which is a joke), it just implements threading differently... |
|
It is not subjective to say 'C is faster than Perl' or 'Perl is faster than Ruby'. That is true, in almost every instance, C IS faster than the equivalent Perl code and the equivalent Perl code is faster than Ruby (whether that holds true for Ruby 1.9 we shall see).
On the other hand, what constitutes a 'strong' implementation of OO is purely subjective. Would you consider Common Lisp's implementation of OO 'strong'? It is completely different than how Ruby works. But it isn't any more or less OO, it is a different way of doing it. Now if we really want to get into subjectiveness, Smalltalkers would probably say that Ruby's OO is not 'strong' because Ruby resorts to not making conditionals actual objects, unlike Smalltalk, in which literally just about everything is an object.
You might even say that Python is more OO than Ruby because functions are objects in Python but methods are not similar first-class constructs in Ruby (note: I wouldn't actually argue this, but it is just an example of how the languages do something differently).