:) I'd probably get shot
F
On Jul 22, 2008, at 10:52, Pascal Robert wrote:
You should do a "I love generics" session at WOWODC 09 :-P
Andrew,
I agree. And I've found that after reading about how they are actually implemented in Java, most of the *quirks* start to make sense. So, in my opinion, if you do not count the decision not to include generic typing into the VM, they are implemented quite sensibly. Also, once I got used to their peculiarities, I stopped having extra work about them, I'd say they even make me work faster. For me nowadays the worst thing about using generic is that occasionally I have to @suppressWarnings to get the compiler to stop whining about something that will infallibly work. Besides that, I'm happy.
As for Lachlan's problem, I remember once being in a similar situation. When first trying to deal with defining generic Comparators for sorting. I can't recall the details, but remember not being able to tweak my code so it is functional in all legal situations. I finally got it solved by rearranging <? super Something>, <Something> and <? extends Something>. My point being, it was my lack of detailed understanding of Java generics that was the problem, not the generics per se.
F
On Jul 21, 2008, at 23:55, Andrew Lindesay wrote:
Hello Guido;
Coming from the Objective-C mindset they do seem really rather annoying, but I find after some months of playing with them that they are actually helpful in order to know what is inside otherwise unstructured collections. I have also, in implementing generics, identified a couple of "invisible" bugs in some caching code which was quite neat and this showed me how generics can actually be helpful to identify problems too. So I've come to a point where I think they're actually quite handy despite the extra work they create.
cheers.
Maybe I'm just too spoiled from Objective-C.
___
Andrew Lindesay
www.lindesay.co.nz
_______________________________________________
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
_______________________________________________
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
-------------------------------------------------------
Pascal Robert
http://www.macti.ca
http://www.linkedin.com/in/macti
Skype: MacTICanada
AIM/iChat : MacTICanada
_______________________________________________
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
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