3 ms·
I'd heard that groovy 2 would be respecting public/protected/private, as they could be bypassed with metaclass programming in groovy 1, but haven't kept up with
by mgkimsal 14y ago
I'd heard that groovy 2 would be respecting public/protected/private, as they could be bypassed with metaclass programming in groovy 1, but haven't kept up with that in a bit. For example, adding a new method to 'String', in the example given, looks a bit more work than it used to be, and doesn't reference the metaclass.
I've got a vested interest in seeing continual uptake of Groovy, but am wondering what's holding back adoption from those of you who do Java work but haven't integrated Groovy in to your toolset.
- eweise 14y agoI've used groovy in the past on grails projects but haven't adopted it more because its dynamically typed and slower than java. I have adopted scala as my main language however, since it can be used as a direct replacement for java.
- zmmmmm 14y agoSo would the static compilation / type checking features have made a difference to you in your choice of language? I'm sort of half in love with the idea, half in horror - I can pick and choose which parts of my code I want to be static and which parts dynamic - is it the best of all worlds or a dogs breakfast of incomprehensible and conflicting paradigms? I don't know, but I think it's one of the first popular and well established languages to offer this so I consider it really intriguing to see how it plays out.