Issue #13097 has been updated by Robert A. Heiler.


I have no pro or con opinion, just adding links for people who just want to click on stuff for the corresponding docu:

  https://ruby-doc.org/stdlib-2.4.0/libdoc/socket/rdoc/Socket.html#method-c-gethostbyaddr

  https://ruby-doc.org/stdlib-2.4.0/libdoc/socket/rdoc/Socket.html#method-c-gethostbyname

----------------------------------------
Bug #13097: Deprecate Socket.gethostbyaddr and Socket.gethostbyname
https://bugs.ruby-lang.org/issues/13097#change-62378

* Author: Vit Ondruch
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux-gnu]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
Is there a reason to keep these methods around? They were marked obsolete by POSIX.1-2001 and the POSIX.1-2008 removes the specifications of gethostbyname, gethostbyaddr recommending the use of getaddrinfo and getnameinfo instead. If they are kept because of Ruby backward compatibility, shouldn't they be re-implemented by these modern interfaces?



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

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