adding the ability to evaluate groovy expressions#21
adding the ability to evaluate groovy expressions#21orlandobcrra wants to merge 3 commits intoTouK:masterfrom
Conversation
|
Hi @jakubnabrdalik, What do you think about this one? Example: |
|
Oralndo, IMHO this is a wrong way to do it in groovy. This is programming in strings. No help from IDE, compiler or anything. The Groovy-way would be to use closures (or functional interface and lambdas in Java8). So I would suggest something like: This has the advantage of more IDE/compiler support. To do that, we should introduce a new interface, because interface Getter is not a functional interface. If you feel like doing this, it would be great. Otherwise I can do it, but it's gonna take me some time (lots of work at the moment). |
|
Hi @jakubnabrdalik, I removed the ugly string evaluation :) and pushed a commit to handle Closures, it was more easy, actually. |
|
Ok, it's gonna be a bit more complex. |
No description provided.