3 ms·
Ruby does have operator overloading. And it is kind of sad to me that Python is so much more popular than it, even though Ruby has a much cleaner object-orient
by oezi 5y ago
Ruby does have operator overloading.
And it is kind of sad to me that Python is so much more popular than it, even though Ruby has a much cleaner object-oriented foundation. Not to speak of underscores...
- chubot 5y agoRuby is arguably more OOP than Python, but I'd claim that doesn't help much in the scientific programming / machine learning use case. It might even hurt a little. This kind of code is naturally expressed in "functions and data" rather than "objects" (data being vectors, matrices, etc.). And I say this as someone who uses objects in most of my code! (which is not scientific code)