http://pastie.org/401414 has an implementation that changes Sequel to
instance_eval the filter, select, and order blocks unless the blocks
require an argument:

  def a
    'b'
  end
  dataset.filter{a} # SQL: "a"
  dataset.filter{|o| a} # SQL: 'b'
  dataset.filter{|o| o.a} # SQL: "a"

This would be a serious breakage to backwards compatibility, though on
a lot of queries it would make the API nicer.  I like the fact that it
gives the user control to decide, though the usage is a little
obtuse.  I'd like to get some comments from the community before I
decide if I want to do this.

This will not be in 2.11.0, but could be in a future version.

Thanks,
Jeremy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to