On tis, 2004-10-05 at 16:40, Randal L. Schwartz wrote:
> Yes, it would be much more convenient to be initialized on "use",
> if you gave it the right parameters, or initialized later if not.

Sorry for being stubborn, but I disagree with this. I'm not arguing
against you to avoid work; we're only talking about a handful lines of
code. To me, specifying the initialization parameters in the "use"-line
has two major drawbacks:

It is non-standard. The great majority of modules on CPAN uses the
"use"-line to specify which symbols to import. To use it for something
else would probably confuse a lot of users. I didn't even think it was
possible before we started this discussion.

It makes it impossible to export any symbols (conditionally) from
HTTP::TransparentCache later.

The only advantage I can see with doing initialization via the use-line
is to avoid a single line of code for each program that uses
HTTP::TransparentCache.

To me, these two drawbacks outweigh the convenience of getting rid of
the init-call by far. Unless you have a convincing argument for why
initialization via the use-line is superior, I will not implement this
feature. Sorry.

/Mattias


Reply via email to