You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@reef.apache.org by Markus Weimer <ma...@weimo.de> on 2015/12/22 23:33:02 UTC
Add dependency to Immutables?
Hi,
I just came across the Immutables library[0]. This looks like a rather
handy tool to replace many of the boring immutable data classes in REEF
with generated code. The license is compatible with us. What do you think?
Markus
[0]: http://immutables.github.io/
Re: Add dependency to Immutables?
Posted by Markus Weimer <ma...@weimo.de>.
On 2015-12-27 04:06, Tae-Geon Um wrote:
> It seems that using Immutable has little merit to us. Any thoughts?
Thanks for checking it out, Taegeon! I agree, the utility of this for us
is much less than it initially seemed.
Markus
Re: Add dependency to Immutables?
Posted by Byung-Gon Chun <bg...@gmail.com>.
Thanks, Tae-Geon.
It looks like it's not worth trying.
On Sun, Dec 27, 2015 at 9:06 PM, Tae-Geon Um <ta...@gmail.com> wrote:
> Hi,
>
> I’ve take a look at it.
>
> The advantages of Immutables are that
> 1) it can reduce the number of code lines
> - Simple immutable classes, just having simple getter methods,
> can be generated easily.
> - But, if the class has complex getter methods (such as sum of
> the vector elements), the reduction of code lines would not be huge.
>
> The disadvantages of Immutables are that
> 1) It doesn’t seem that Immutables is compatible with Tang @inject.
> 2) it does not support generics, such as Optional<T> class in REEF.
>
> It seems that using Immutable has little merit to us.
> Any thoughts?
>
> Taegeon
>
> > On Dec 23, 2015, at 7:33 AM, Markus Weimer <ma...@weimo.de> wrote:
> >
> > Hi,
> >
> > I just came across the Immutables library[0]. This looks like a rather
> handy tool to replace many of the boring immutable data classes in REEF
> with generated code. The license is compatible with us. What do you think?
> >
> > Markus
> >
> > [0]: http://immutables.github.io/
>
>
--
Byung-Gon Chun
Re: Add dependency to Immutables?
Posted by Tae-Geon Um <ta...@gmail.com>.
Hi,
I’ve take a look at it.
The advantages of Immutables are that
1) it can reduce the number of code lines
- Simple immutable classes, just having simple getter methods, can be generated easily.
- But, if the class has complex getter methods (such as sum of the vector elements), the reduction of code lines would not be huge.
The disadvantages of Immutables are that
1) It doesn’t seem that Immutables is compatible with Tang @inject.
2) it does not support generics, such as Optional<T> class in REEF.
It seems that using Immutable has little merit to us.
Any thoughts?
Taegeon
> On Dec 23, 2015, at 7:33 AM, Markus Weimer <ma...@weimo.de> wrote:
>
> Hi,
>
> I just came across the Immutables library[0]. This looks like a rather handy tool to replace many of the boring immutable data classes in REEF with generated code. The license is compatible with us. What do you think?
>
> Markus
>
> [0]: http://immutables.github.io/