Re: generics fun
Re: generics fun
- Subject: Re: generics fun
- From: Mike Schrag <email@hidden>
- Date: Mon, 21 Jul 2008 18:04:47 -0400
one of the things that frustrates me about generics is working
with collections.
Just that one? Generics are the worst thing since Windows 3.11 ...
I try to keep my code clean and add generics where they make sense
but I hate them. There is absolutely NO GAIN in using them, just
annoyance.
Yes, there is added complexity, but "no gain" I really disagree
with. Your API's become much clearer when you use them, and
especially with a big framework like WO, knowing what objects are
coming back out of methods is really helpful.
Yep I agree that it's really useful. But it seems like in a
framework you need to duplicate each method to allow interaction
within the framework as well as from without :-/
e.g.,
public CustomSet<? extends AbstractType> recordSet();
public CustomSet<AbstractType> _recordSet();
Not sure what you mean here. I've never had to do this. It should
only require the "? extends" variant.
ms
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden