Re: typesafe and chainable keypaths (was: Re: EOSortOrdering and keypaths [SOLVED])
Re: typesafe and chainable keypaths (was: Re: EOSortOrdering and keypaths [SOLVED])
- Subject: Re: typesafe and chainable keypaths (was: Re: EOSortOrdering and keypaths [SOLVED])
- From: Mike Schrag <email@hidden>
- Date: Mon, 21 Jun 2010 16:48:41 -0400
> Good point. I'd like to see this in Wonder. Anything that makes the code shorter and easier to read is a good thing.
"Booking.PERFORMANCE.PERFORMANCE_TYPE().NAME().valueInObject(myBooking)"
I don't see how you can do this without generating an ERXKey subclass for every type in the reachable type system for KVC ... I briefly experimented with doing that early on, but it generates a TON of classes and I started to get concerned about burning permgen space. You also run into potentially weird problems when two frameworks use keys of the same declared type, but generate their classes in different packages. I decided to opt for the .dot(..) method, instead, and just use ERXKeys for with generics.
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