Re: Implementing a DSL using groovy.util.DelegatingScript

2016-08-17 Thread Jochen Theodorou
Hi Gerrit, When you say that a newer DelegateScript class is a muc more elegant way, than doing with MissingMethodException... well that would be still how it is implemented in the end. So not more elegant, just hidden in my opinion. Planed is nothing in this direction right now. I have a bi

Re: Implementing a DSL using groovy.util.DelegatingScript

2016-08-16 Thread Gerrit Telkamp
Jochen, thank you for your approach! It seems that question was a bit incomplete. I should have asked: Is it planned to include a list of Delegate Classes by groovy itself, or is the preferred way to "roll your own" on application level by the existing groovy.util.DelegatingScript? BTW, the "Mis

Re: Implementing a DSL using groovy.util.DelegatingScript

2016-08-16 Thread Jochen Theodorou
On 16.08.2016 10:45, Gerrit Telkamp wrote: I'm using groovy.util.DelegatingScript to realize a simple DSL. It works quite well and the implementation was straight forward. Now I would like to extend my DSL by more words. Usually, this would be done by implementing each word as method in the del

Implementing a DSL using groovy.util.DelegatingScript

2016-08-16 Thread Gerrit Telkamp
I'm using groovy.util.DelegatingScript to realize a simple DSL. It works quite well and the implementation was straight forward. Now I would like to extend my DSL by more words. Usually, this would be done by implementing each word as method in the delegate class. Instead I would like to split t