Closed eagletmt closed 7 years ago
:+1:
Object#send
(used for metaprogramming) can do the same for Object#__ send__
.
So I think overwriting send
is no problem.
I know Object#__send__
, but most Ruby programmers and libraries expect #send
acts like #__send__
.
I think any methods should not be overridden unless it's intentional (such as overriding #to_s
or #==
).
I do not know why default method should not be overwritten.
Most programmers do not know #send
, and high-level programmers they want to use #send
can read documents.
and, Why #__send__
exists? I think that send is assumed to be overwritten because it is a common name.
It turned out that my thoughts and yours are completely different. Closing this proposal.
Rename Client#send to Client#send_data