Re: Never mind Re: add_to_ for existing objects

[prev] [thread] [next] [Date index for 2005/04/08]

From: Perrin Harkins
Subject: Re: Never mind Re: add_to_ for existing objects
Date: 20:27 on 08 Apr 2005
On Fri, 2005-04-08 at 13:18 -0700, Ryan Tate wrote:
> $user->add_to_notes({note_id => $note->id})

I often define my own methods for things like this to make the intent
clearer.  This one doesn't look too bad, but it often helps to just wrap
some non-obvious code for adding things inside of a sub with a clear
name and interface.

- Perrin

Never mind Re: add_to_ for existing objects
Ryan Tate 20:18 on 08 Apr 2005

Re: Never mind Re: add_to_ for existing objects
Perrin Harkins 20:27 on 08 Apr 2005

Generated at 14:42 on 11 Apr 2005 by mariachi v0.52