What about something like object.build { } ?
> On Nov 9, 2016, at 3:45 PM, Jordan Martinez <[email protected]>
> wrote:
>
> 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]
> <mailto:[email protected]>> wrote:
> On Thu, Nov 10, 2016 at 12:02 AM, Cédric Champeau
> <[email protected] <mailto:[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.
> - Re: .with() variant that returns the original object Paul King
- Re: .with() variant that returns the original objec... Philip Mitchell
- Re: .with() variant that returns the original objec... Paul King
- Re: .with() variant that returns the original objec... [email protected]
- Re: .with() variant that returns the original objec... Felix Dorner
- RE: .with() variant that returns the original objec... Winnebeck, Jason
- Re: .with() variant that returns the original objec... Cédric Champeau
- RE: .with() variant that returns the original objec... Winnebeck, Jason
- Re: .with() variant that returns the original objec... Paul King
- Re: .with() variant that returns the original objec... Jordan Martinez
- Re: .with() variant that returns the original objec... James Kleeh
- Re: .with() variant that returns the original objec... Paul King
- Re: .with() variant that returns the original objec... Paul King
- Re: .with() variant that returns the original objec... Paul King
- Re: .with() variant that returns the original objec... Guillaume Laforge
- Re: .with() variant that returns the original objec... GR8Conf EU
- RE: .with() variant that returns the original objec... Winnebeck, Jason
- Re: .with() variant that returns the original objec... Jochen Theodorou
- Re: .with() variant that returns the original objec... OC
- Re: .with() variant that returns the original objec... GR8Conf EU
- Re: .with() variant that returns the original objec... Paul King
