On Sun, 4 Nov 2001, Aaron Johnson wrote:
> Since I can't resist (dam that human nature) I suggest the following
> color for the bike shed.
>
> get and set should NOT exist, but through AUTOLOAD they can be called.
> This may open a can of worms (aka flames) since there is overhead in
> using AUTOLOAD, but we can cache the calls and not lose in the grand
> scheme. A method would simply be named 'story' (example from earlier
> post). Using AUTOLOAD would allow for get_story, getStory, set_story,
> setStory etc. I suggest this for developer efficiency. It also may
> allow for easier transition from other languages as well. We can always
> override it with there own method that is explicit in name.
I'm totally against the use of AUTOLOAD. I must admit I thought it was
cute seeing it used in Damian Conway's book to generate accessors on the
fly, but really, all it's doing is saving a tiny bit of typing. P5EE is
about the long term, not saving the initial module developers 5 minutes
worth of effort in typing. And AUTOLOAD really is a maintainence disaster
(and again, doesn't really work with OO).
--
<Matt/>
/|| ** Founder and CTO ** ** http://axkit.com/ **
//|| ** AxKit.com Ltd ** ** XML Application Serving **
// || ** http://axkit.org ** ** XSLT, XPathScript, XSP **
// \\| // ** mod_perl news and resources: http://take23.org **
\\//
//\\
// \\