Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I believe Python's __getattr__() and __setattr__() allow you do the same thing, but I don't know enough Ruby to say for sure :-)


You couple those with ruby's method_missing and then you have some interesting functionality. But basically the way that Ruby handles operator overloading and function accessing is a lot cleaner than pythons. It would be pretty nice to get rid of a lot of the dunders.




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

Search: