On Thursday, July 2, 2015 at 4:29:35 PM UTC-7, Elad Ossadon wrote:
>
> Could also override Enumberable's any? in case a block wasn't sent.
>

#present? I'm against for the same reason I'm against exists?, it implies a 
single object but it is called on a set.  Personally, I think it's a stupid 
name even for a single object.  I believe the method name was derived from 
validates_presence_of in ActiveRecord, and while validates_presence_of 
:column makes a bit of sense, "a".present? or 1.present? do not.
 
#any? if read as "are there any elements in the dataset?", while not a 
perfect name, makes sense to me, and should be backwards compatible, as an 
optimization to the current behavior.

Thanks,
Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to