On Fri, Feb 18, 2011 at 7:56 PM, Reinier Zwitserloot <[email protected]>wrote:

> My own project, but:
>
> Why the heck jump through all those hoops? Download lombok and you can just
> do this:
>
> @Data public class Person {
>     private final String first, last;
>     private final int age;
> }
>
> And toString, getters, constructor, equals/hashCode are all taken care of.
>
> More to the point: A person is NOT a Pair<String, Pair<String, Integer>>.
>

I never really thought that Alexey was seriously proposing this as a viable
way to implement beans, but I certainly give him credit for coming up with a
creative solution to replace fields with generics. This kind of shenanigan
is pretty common in C++, it's kinda of scary to see it beginning to happen
in Java as well.

-- 
Cédric

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to