| Author |
Why Generics and not 'Specifics'
|
Dave Brown
Ranch Hand
Joined: Mar 08, 2005
Posts: 301
|
|
Probably missing something really obvious here but with the introduction of Generics the compiler can see a collection is intended to hold a Specific object.. not a Generic object..
List<String> is 'Specific'ally a list of Strings.. but List on its own is a generic list... can hold any object....
It seems backwards to me, but as I said I'm sure I'm missing something obivous !!
|
Regards, Dave Brown
SCJP 6 - [url]http://www.dbws.net/[/url] - Check out Grails Forum
|
 |
Mike Simmons
Ranch Hand
Joined: Mar 05, 2008
Posts: 2782
|
|
|
I talked about this a bit just the other day in my third post here.
|
 |
 |
|
|
subject: Why Generics and not 'Specifics'
|
|
|