groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Theodorou <blackd...@gmx.org>
Subject Re: .with() variant that returns the original object
Date Tue, 08 Nov 2016 16:41:26 GMT
what about an overloaded with:

>> myObject.with(true) {
>>     // some code
>> }

or:

>> myObject.with(returnThis:true) {
>>     // some code
>> }

or... well I am sure there are many variants... just want to know if 
something like this doesn't cut it.

bye Jochen

Mime
View raw message