Thursday, May 17, 2007

Anonymous Generic Demonstration

In his blog Anonymous generic methods making things "just work", Ted Neward takes the idea of filtering results from the relational world and shows us how this could be coded using anonymous methods in C#. Ted then uses the opportunity to take a jab at Sun for needing type erasure for their implementation of Generics.

Ted’s challenge to offer an elegant solution to the problem is taken up by Sam Pullara. In Sam's blog, he demonstrates how to get the job done in Java. The challenge is also taken up by Guillaume Laforge and in his blog he shows how to solve this problem using Groovy. This solution is so nice that it makes all the other solutions offered resemble the dogs breakfast which leads us to the point of Marc Logemann’s blog, "perhaps Generics won’t reach the masses"

No comments: