nicholas22/jpropel — Issue #1: groovy support for Linq aspects
Author: gburgett
Created: 2012-01-28 21:15:40+00:00
State: open

Hello,

I saw your library the other day and am very excited. It is an awesome library, particularly the Linq portions are very interesting to me. In my day job I am a C# developer but in my spare time I like to use Java, and having Linq for java would make me very happy. Keep up the good work!

When I saw your library I immediately thought that it would be excellent to use with groovy, as being able to perform a Linq expression using a closure would be the most concise and readable way to do it (and also the closest to what I'm used to, C#'s anonymous functions). It took a little fiddling but I was able to create a proof of concept in one static class.

Have a look at this gist to see what I've done: https://gist.github.com/1695753

I'd love it if you would integrate this into jpropel-light, until then I will maintain my gist. Also, I would love your feedback on how to better attach the extension methods using the ExpandoMetaClass. Perhaps it could be done in an annotation?

Thanks,
-Gordon