On 31 Jan 2007, [EMAIL PROTECTED] wrote:

On 1/31/07, Ted Zlatanov <[EMAIL PROTECTED]> wrote:
> > I would also ask for a load_speculative() method, which simply calls
> > load with (speculative=>1).  I know about default_load_speculative,
> > this is a local override.  Yes, it pollutes the namespace--I think
> > it's worthwhile.

> Something like this should go in Helpers, but really, it's only a few
> more characters to actually put the code in your common base class.
> The helper call:
>     use Rose::DB::Object::Helpers 'load_speculative';
> vs. the actual code:
>     sub load_speculative { shift->load(speculative => 1, @_) }
> Looks like about 9 fewer characters for the Helper :)

My request was for 0 characters, that it be a part of Rose::DB::Object
by default.  I'll offer a goat sacrifice to the namespace gods :)

Ted

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to