HN2new | past | comments | ask | show | jobs | submitlogin

Ruby and Python user here:

If you ignore for a minute the complaints about the way Python modules are linked to the filesystem, I'd say there are actually some big advantages over Ruby in Python's module system.

Mainly just that you actually have proper namespacing features which are orthogonal to the notion of classes or mixins.

In Ruby namespacing (in as much as it exists) is implemented via a clumsy dual-purposing of the Module/Class system; the mechanism used to import methods into a class from a mixin, is the same one used to import constants from a module's namespace. A lot of the flexibility you have when importing things between python namespaces, just isn't possible in Ruby, at least not without a lot of boilerplate or dubious metaprogramming.

I don't mean to start a flamewar here though. I could list Python warts just as easily. Just saying, Pythonistas, be grateful for what you have :)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: