What is the developer experience like at your organization? Do you have a platform engineering team? We want to hear from you!
Stop letting outdated access processes hold your team back. Learn how to build smarter, faster, and more secure DevOps infrastructures.
Joined Dec 2004
Stats
Reputation: | 40 |
Pageviews: | 388.4K |
Articles: | 4 |
Comments: | 2 |
Comments
Jan 26, 2008 · Dalton Filho
Jan 20, 2008 · Steven Devijver
Yeah, it's my MO :-)
I wrote a Builder once with BuilderSupport and I found it not intuitive at all. BuilderSupport is a good solution if you want to write a Builder in Java, but in Groovy EMC and delegates is in my opinion more interesting.
You can still call upon propertyMissing() and methodMissing() if you want to. Actually, it would be nice if
you could overload these methods, like:
void methodMissing(String name, Closure cl) { }
or
void methodMissing(String name, Map params = [:], String[] names, Closure cl) {}
That would make DSL support code even more concise.