After thinking about it for a while, I'll give a +1 to something like Squirrel as well. It has the advantage of a very "Rubyish" syntax, without having to resort to monkeypatching core classes or using ParseTree. It supports all of the criteria I know of thus far (ordering, OR, etc.), and allows for easy extensibility touchpoints, since it's all just methods being called on objects - adapters which don't support a particular method can raise an UnsupportedAdapterError, or some such.
On Jan 29, 10:19 pm, Ted Han <[email protected]> wrote: > unagi-san was actually suggesting something similar but not identical > to squirrel (which is why wycats pointed it out) > > http://gist.github.com/54923 > > either contained syntax being possible (depending on whether we want > to patch Array). > > the nice thing about this is that it mainly focuses on blocks, and > property objects (where the various comparators would be defined, > including fun things like an "in?" method, for use like this: > color.in? ["blue", "green", "red", "yellow"]) > > It's a handy syntax. And on top of that it's still fairly compact > when using bracketed block syntax, rather than a do block. > > It totally gets my vote :) > > +1 for squirrel inspired syntax > > -Ted > > On Thu, Jan 29, 2009 at 8:24 PM, Greg Campbell <[email protected]> wrote: > > > Wycats mentioned Squirrel in IRC, and it might be worth a look for > > some potential inspiration:http://www.thoughtbot.com/projects/squirrel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "DataMapper" 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/datamapper?hl=en -~----------~----~----~----~------~----~------~--~---
