[ruby-core:74128] [Ruby trunk Feature#12141] send and __send__

From: shevegen@...
Date: 2016-03-04 07:03:21 UTC
List: ruby-core #74128
Issue #12141 has been updated by Robert A. Heiler.


Hmm the second send that appears in bold is a __ send __  - it seems
as if rubymine interpretes this as bold, sorry.

----------------------------------------
Feature #12141: send and __send__
https://bugs.ruby-lang.org/issues/12141#change-57273

* Author: Sebastian Herm
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
Hi guys !

We have this concept of sending messages to objects with Object#send, and that's fine, but often a child class defines its own send method, so that's why we have this ugly Object#__send__ hack.

So, I suggest dropping Object#__send__ and aliasing Object#send to Object#invoke instead, which seems to me as a better evocative method name.

Good or bad idea ?

Thanks !



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next