• 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: typesafe and chainable keypaths (was: Re: EOSortOrdering and keypaths [SOLVED])
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: typesafe and chainable keypaths (was: Re: EOSortOrdering and keypaths [SOLVED])
      • From: Marc Guenther <email@hidden>
References: 
 >typesafe and chainable keypaths (was: Re: EOSortOrdering and keypaths [SOLVED]) (From: Marc Guenther <email@hidden>)
 >Re: typesafe and chainable keypaths (was: Re: EOSortOrdering and keypaths [SOLVED]) (From: Chuck Hill <email@hidden>)
 >Re: typesafe and chainable keypaths (was: Re: EOSortOrdering and keypaths [SOLVED]) (From: Marc Guenther <email@hidden>)
 >Re: typesafe and chainable keypaths (was: Re: EOSortOrdering and keypaths [SOLVED]) (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: typesafe and chainable keypaths (was: Re: EOSortOrdering and keypaths [SOLVED])
  • Next by Date: Create Entity, Delete Entity, Why does validation occur?
  • Previous by thread: Re: typesafe and chainable keypaths (was: Re: EOSortOrdering and keypaths [SOLVED])
  • Next by thread: Re: typesafe and chainable keypaths (was: Re: EOSortOrdering and keypaths [SOLVED])
  • Index(es):
    • Date
    • Thread