• 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: Florijan Stamenkovic <email@hidden>
  • Date: Tue, 22 Jul 2008 16:33:42 -0400

More likely "F implements Death"... I see you like generics, but there is such a thing as overuse :P

F

On Jul 22, 2008, at 12:40, Lon Varscsak wrote:

<? extends Death>

On Tue, Jul 22, 2008 at 9:08 AM, Guido Neitzer <email@hidden> wrote:
No, strangled ...


cug


On 22.07.2008, at 09:30, Florijan Stamenkovic wrote:

:) 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:
40mac.com


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:
40macti.ca


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:
s.net


This email sent to email@hidden

--
http://www.event-s.net

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40smarthealth.com


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:
40mac.com


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
  • Follow-Ups:
    • Re: generics fun
      • From: "Lon Varscsak" <email@hidden>
References: 
 >generics fun (From: Lachlan Deck <email@hidden>)
 >Re: generics fun (From: Guido Neitzer <email@hidden>)
 >Re: generics fun (From: Simon McLean <email@hidden>)
 >Re: generics fun (From: Guido Neitzer <email@hidden>)
 >Re: generics fun (From: Andrew Lindesay <email@hidden>)
 >Re: generics fun (From: Florijan Stamenkovic <email@hidden>)
 >Re: generics fun (From: Pascal Robert <email@hidden>)
 >Re: generics fun (From: Florijan Stamenkovic <email@hidden>)
 >Re: generics fun (From: Guido Neitzer <email@hidden>)
 >Re: generics fun (From: "Lon Varscsak" <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