[Ironruby-core] A nicer syntax for generic extension methods

Ryan Riley ryan.riley at panesofglass.org
Wed Feb 3 12:15:59 EST 2010

On Wed, Feb 3, 2010 at 10:49 AM, Ivan Porto Carrero <
ivan at whiterabbitconsulting.eu> wrote:

> For lightspeed I wrote an internal dsl that allows you to query similarly
> to the regular api but no special module for linq stuff. I skipped linq
> altogether didn't need it there.
> so what I created there is (It's in the asp.net mvc chapter btw)
> find_all User do
>    where a(:name).like("ivan%") & a(:age) > 23
>    order_by :name.desc
> end
> that may be wrong but it's close to something like that..

I like that syntax. It reminds me of F#'s computation expressions. I was
thinking something more along the lines of what

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100203/c3c1bcca/attachment.html>

More information about the Ironruby-core mailing list