From: Nikolai Weibull Date: 2012-03-31T00:53:11+09:00 Subject: [ruby-core:43949] Re: [ruby-trunk - Feature #5644] add Enumerable#exclude? antonym On Fri, Mar 30, 2012 at 16:02, matz (Yukihiro Matsumoto) wrote: > OK, you think negative for include? is special. ��Understood. > But as Nikolai pointed out, exclude? is not the best name for the function. > Any alternative? How about changing the definition of Enumerable#none?, #any?, and #all? to take an optional argument that is compared against each element using #==. Then we have if File.exist? some_file and some_list.none? some_file I would not write it like that ��� I���d still use not a.include? b, which I think is hard to beat ��� but then we at least don���t need to come up with a new name and these three methods gain semantics that I���ve felt they were lacking.