You may wonder how we get all those great closure-based methods like findAll() and sortBy() onto classes (or interfaces!) in GScript. The secret is a language construct called Enhancements. Here is a stripped down version that puts the findAll() method onto java.util.List:
uses java.util.*
enhancement MySampleEnhancement : List {
[...]
Filed under: Code Samples, Development, GScript | 2 Comments »