• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: generics fun
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: generics fun
      • From: Lachlan Deck <email@hidden>
References: 
 >generics fun (From: Lachlan Deck <email@hidden>)
 >Re: generics fun (From: Guido Neitzer <email@hidden>)
 >Re: generics fun (From: Mike Schrag <email@hidden>)
 >Re: generics fun (From: Lachlan Deck <email@hidden>)

  • Prev by Date: Re: generics fun
  • Next by Date: Re: generics fun
  • Previous by thread: Re: generics fun
  • Next by thread: Re: generics fun
  • Index(es):
    • Date
    • Thread