• 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: Better key path creation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Better key path creation


  • Subject: Re: Better key path creation
  • From: John Huss <email@hidden>
  • Date: Tue, 21 Dec 2010 10:35:08 -0600

It tries to avoid collisions that are more likely to occur by adding "Key" to the end of the method name, but it is still possible.  I think the ideal solution would be to have a function to detect a collection (in the template logic) and only rename the ones that are necessary.  However, even that is problematic because then the user is likely to accidentally call the wrong method (the one we collided with).

Because of the nature of this, it might make more sense to not put it in the standard template and just let people add it to their own custom templates, that way they can handle any collisions themselves.  By putting it out here like this for now people can try it and maybe report any problems and we'll see how it goes.

John

On Tue, Dec 21, 2010 at 9:41 AM, Ramsey Gurley <email@hidden> wrote:

On Dec 20, 2010, at 10:15 AM, John Huss wrote:

The WOLips one is the real one.  You can go vote for it if you'd like to have it.

Thanks,
John

On Mon, Dec 20, 2010 at 5:30 AM, Timo Hoepfner <email@hidden> wrote:
Already there...

http://issues.objectstyle.org/jira/browse/WONDER-617
http://issues.objectstyle.org/jira/browse/WOL-1189

Does this still produce the collisions that Timo observed? If so, I know it isn't pretty, but I think the patch may stand a better chance if it has a prefix like


MovieRole.$path.$talent().$photo().$photo().key()

Otherwise, the next time someone wants to add a new method to ERXKey, the change is going to be subject to everyone getting upset because it brakes with their model.  But then, I also remember Mike saying something about perm cache at some point in time...

Ramsey


 _______________________________________________
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

References: 
 >Better key path creation (From: John Huss <email@hidden>)
 >Re: Better key path creation (From: David Avendasora <email@hidden>)
 >Re: Better key path creation (From: Timo Hoepfner <email@hidden>)
 >Re: Better key path creation (From: John Huss <email@hidden>)
 >Re: Better key path creation (From: Ramsey Gurley <email@hidden>)

  • Prev by Date: Re: Using JVM 1.6 on Mac OS X
  • Next by Date: Re: Using JVM 1.6 on Mac OS X
  • Previous by thread: Re: Better key path creation
  • Next by thread: Re: Better key path creation
  • Index(es):
    • Date
    • Thread