Project

General

Profile

Actions

Feature #14465

open

rename/alias and then obsolete UDPSocket::send

Added by mcr (Michael Richardson) about 6 years ago. Updated over 2 years ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:85502]

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:

  1. we rename it to sendto, leaving an alias.
  2. mark UDPSocket::send as obsoleted
  3. remove it in a future version

Some things like Celluloid::IO and the like will need encouragement to duck type the new interface sooner.

Actions #1

Updated by hsbt (Hiroshi SHIBATA) over 2 years ago

  • Project changed from 14 to Ruby master
Actions

Also available in: Atom PDF

Like0
Like0