On Wed, Feb 3, 2010 at 10:59 AM, Ivan Porto Carrero < i...@whiterabbitconsulting.eu> wrote:
> hashes? Just an example, though perhaps not the best. :) but may i ask why you're so hell-bent on linq? > I mostly want some way to use the Reactive Extensions for asynchronous programming and OpenXML SDK for working with Office docs. In particular, I'm thinking of working with IR on top of other C# and/or F# libraries which might be using one or both of those libraries. If I were to write it in all Ruby, I'd probably look at eventmachine for an event loop processor. I'm definitely open to other solutions. > Linq is a really bad match to ruby with the expressions. it would require > some significant amount of work to get that to work correctly. AFAIK there > is no way in IronRuby to build expressions except use the raw API, but > nothing is in there yet that makes this easier to do. > L2S uses expressions, but I don't think everything uses them. If all that's required is a delegate, that's not so hard and can be be accomplished with a wrapping Ruby method that accepts a block and wraps the block into a Func to pass into the LINQ method. Given some of the previous posts, I think creating a general module to wrap these methods shouldn't be too difficult. Thoughts? Anyway you can reuse anonymous types did you know that? Alex James learnt > the trick from Wes Dyer > > http://blogs.msdn.com/alexj/archive/2007/11/22/t-castbyexample-t-object-o-t-example.aspx > Yeah, I knew about that, but I don't really want to touch casting by example in Ruby. It might not be bad, but why bother when I can use something from Ruby? Ryan
_______________________________________________ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core