jastrachan | 5 Jul 16:59 2005
Picon

Re: adding dependency injection to groovy (was Re: [groovy-user] grails: Groovy class loader and Spring)


On 5 Jul 2005, at 09:59, Dierk Koenig wrote:

>>>> def f = Cheese.class.new()
>>>>
> ..
>
>> Yeah, I'm leaning to a static method now. So how about
>>
>> def f = Cheese.new()
>>
>> James
>>
>
> Hm, that would require a language change, right?

new() would look like a static method - though right now our parser  
probably disallows 'new' as a method name.

> I would be willing to pay the expense of the extra
> .class.

The only difference is - is it a new method on a Class or is it a new  
static method.

James
-------
http://radio.weblogs.com/0112098/


Gmane