From: Bertram Scharpf Date: 2009-08-04T20:16:11+09:00 Subject: Re: Inconsistency in Array#[] Hi, Am Dienstag, 04. Aug 2009, 12:11:53 +0900 schrieb John W Higgins: > On Mon, Aug 3, 2009 at 7:50 PM, Bertram Scharpf wrote: > > > > Anyway, it is still my opinion that there should be methods > > Array#notempty?, Hash.notempty? and String.notempty? analogous to > > Numeric#nonzero?. Expect me to repeat it soon. > > > > Have you actually written the patch to implement these methods and had it > rejected? Several. Here are two. (The links do not work any more.) http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/7518 http://rcrchive.net/ These are the sources in my private library: http://bertram-scharpf.homelinux.com:8808/doc_root/bs-ruby-2.3/rdoc/classes/Array.src/M000005.html http://bertram-scharpf.homelinux.com:8808/doc_root/bs-ruby-2.3/rdoc/classes/Hash.src/M000004.html http://bertram-scharpf.homelinux.com:8808/doc_root/bs-ruby-2.3/rdoc/classes/String.src/M000087.html Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de