From: duerst@... Date: 2017-03-24T08:46:28+00:00 Subject: [ruby-core:80306] [Ruby trunk Feature#13303] String#any? as !String#empty? Issue #13303 has been updated by duerst (Martin D��rst). `any?` would definitely be the wrong name, because for Arrays, [].any? is always true. Of the names proposed so far, I think `not_empty?` looks best. An alternative may be `unempty?`, but that may sound decidedly unenglish :-). Another may be `any_chars?`, which would be colloquially correct, but still has the problem that it works differently from a simple `any?`. ---------------------------------------- Feature #13303: String#any? as !String#empty? https://bugs.ruby-lang.org/issues/13303#change-63774 * Author: naruse (Yui NARUSE) * Status: Feedback * Priority: Normal * Assignee: matz (Yukihiro Matsumoto) * Target version: ---------------------------------------- Once I proposed "some container#nonempty?" on #12075, and understand there's Array#any?. Today I found String doesn't have such method. -- https://bugs.ruby-lang.org/ Unsubscribe: