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 :)


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
Rose-db-object mailing list

Reply via email to