Hacker News new | ask | show | jobs
by iterati 1616 days ago
Python is a multi-paradigm language, of which OO is one paradigm it supports.
3 comments

Ruby has map, filter, reduce and a bunch of other functional methods. It's more about the consistency of wondering what's a function versus what's a method and then things like list comprehensions and for loops. Python also doesn't have a lot of the goodies of a real functional language, it encourages for loops and seems to be even more procedural than Ruby but less OO?
Not really. Python 3 is all OO under the hood including what appear to be procedural functions. It's just not as elegant as Ruby's OO.
Ruby is a strongly OO language, which arguably also has better support for functional programming than Python.
Yes, that's the Zen of Ruby and why I love it.