Issue #9022 has been updated by alexeymuranov (Alexey Muranov).


Since commenting on the other thread, i have leant that the proposed interpretation of the "for all" quantifier is apparently called "existential import" and apparently was a matter of debate in the 19th century (http://en.wikipedia.org/wiki/Syllogism#Existential_import for example).
----------------------------------------
Bug #9022: all? method in empty array should return false
https://bugs.ruby-lang.org/issues/9022#change-42468

Author: lucascaton (Lucas Caton)
Status: Rejected
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.3.0]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


This is expected:

[].any?(&:whatever?)
# => false

But this is not the behavior which I expect:

[].all?(&:whatever?)
# => true


Do you agree with me?


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