send versus ‘send

August 3rd, 2014 - Frankfurt

I was wondering how they differed, and it turns out that is a good practive to use __send__ when you ignore whether the object receiving the message could have implemented a send method on its own.

Besides, they ruby interpreter will give you a warning if you try to override __send__ and it won't complain if you do the same with send

warning: redefining `__send__' may cause serious problems