5 Jul 2005 16:59
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/
RSS Feed