groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul King <pa...@asert.com.au>
Subject Re: .with() variant that returns the original object
Date Wed, 09 Nov 2016 20:32:58 GMT
On Thu, Nov 10, 2016 at 12:02 AM, C├ędric Champeau
<cedric.champeau@gmail.com> wrote:
> I agree with what Jason said. I'm still up for `tap`. We could use
> `with(true) { ... }`, but I also dislike "with(returnThis: true) {... }"
> because it's not type safe.

If we progress GROOVY-7956, we'd have type safety but I agree with you
anyway. And it should be returnImplicitThis or returnSelf or something
anyway.

Cheers, Paul.

Mime
View raw message