Actions
Feature #14465
openrename/alias and then obsolete UDPSocket::send
    Feature #14465:
    rename/alias and then obsolete UDPSocket::send
  
Status:
Open
Assignee:
-
Target version:
-
Description
The method name "send" on UDPSocket  https://ruby-doc.org/stdlib-2.5.0/libdoc/socket/rdoc/UDPSocket.html#method-i-send is confusing and inconsistent.
The underlying libc method is called sendto(2) (or sendmsg()).  The method "send" is confused with https://ruby-doc.org/core-2.5.0/Object.html#method-i-send
I suggest:
- we rename it to sendto, leaving an alias.
 - mark UDPSocket::send as obsoleted
 - remove it in a future version
 
Some things like Celluloid::IO and the like will need encouragement to duck type the new interface sooner.
        
          
          Updated by hsbt (Hiroshi SHIBATA) almost 4 years ago
          
          
        
        
      
      - Project changed from 14 to Ruby
 
Actions