[RFC]Class::Lazy - Yet another lazy object construction module



Hi all,

I would like comment from the community about a module I created,
named Class::Lazy.
(Sorry about my bad English but, I'm not a native speaker.)

I put it on:
http://www.fs-output.com/trac/raw-attachment/wiki/ClassLazy/Class-Lazy-0.01_01.tar.gz

Trac development home:
http://www.fs-output.com/trac/wiki/ClassLazy

= NAME =

Class::Lazy

= SYNOPSIS =

use Class::Lazy;
my $thing = Some::Heavy::Class->lazy::new();
# ... any code ... ( construction is postponed ...)
my $res = $thing->some_method(); # constructed now!

= DESCRIPTION =

Class::Lazy is module for lazy object construction.
Only you have to do is prefix "lazy::" to the constructor:

$thing = SomeClass->new();
$lazything = SomeClass->lazy::new();

By doing this, construction is delayed until you call any method on
that.
---

Here are my questions:

* Using "lazy::" namespace is acceptable?
* Please help better documentation X-(

Thanks.

---
Rintaro
http://www.fs-output.com

.



Relevant Pages

  • Re: abbreviations
    ... >since this newsgroup encompasses a worldwide community. ... >enough that we force everybody to use English. ... and origin of the wide use of acronyms on UseNet? ... No, Troll, they have just lost interest (or never even actually_ had_ ...
    (rec.crafts.woodturning)
  • Re: Another indication of Britains dumbed-down society
    ... best English of the whole half-hour. ... IMHO the problem may not be so much that we are too illiterate to talk ... community because everyone has to work now. ... And maybe Britain has slipped down the literacy ladder because there ...
    (uk.politics.misc)
  • Re: Bensham Cunt, Prinz Cock, Members Only, Londonstand and Jellhore - all one in the same!
    ... Just declare that English ... players are about as clean as players anywhere, ... The community is making it very easy for you. ...
    (rec.sport.soccer)
  • Re: Hate crimes soar after bombings
    ... > anxiously seeking out the opinion of the mozlem 'community' or devising ... > When are the powers-that-be going to ask the opinion of the English ... When is a government minister going to visit English areas? ...
    (uk.politics.misc)