What about `object.itselfWith(Closure)`? Then its understood as returning
the object itself but with the changes that follow.

Blessings,
Jordan

On Wed, Nov 9, 2016 at 12:32 PM, Paul King <[email protected]> wrote:

> On Thu, Nov 10, 2016 at 12:02 AM, Cédric Champeau
> <[email protected]> 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.
>

Reply via email to