I'd do it if the intention is to enforce immutability of tuples, like
"...any operation applied to a tuple should result in a new tuple"

Regards
Mario

El lun., 26 nov. 2018 15:44, Paul King <paul.king.as...@gmail.com> escribió:

> On Tue, Nov 27, 2018 at 12:34 AM <sun...@apache.org> wrote:
> >
> > Repository: groovy
> > Updated Branches:
> >   refs/heads/master aa372c484 -> b6933c7ef
> >
> >
> > Add missing concat methods of tuples
> [SNIP]
> >      /**
> >       * Concatenate a tuple to this tuple.
> >       */
> > +    public final Tuple1<T1> concat(Tuple0 tuple) {
> > +        return new Tuple1<>(v1);
> > +    }
> [SNIP]
>
> Returning a new tuple is important? Vs returning this?
>
> Cheers, Paul.
>

Reply via email to