in reply to Re: Re: Re: Re: (bbfu) (Exporter::VA) Re: Exporter::Dream
in thread Exporter::Dream
The ability to do this pretty much implies aliasing. Pragmas started out as a minor footnote feature but grew with feedback that there is a larger interest in that (and it's one reason why people write their own import()).
As for setting the default version equal to the current version, you don't "need" to do anything. If you don't declare any versioned exports, the whole concept is moot. In any case, the default version is optional and will take the current version if you don't declare it. So you can pretty much ignore features you don't need at the moment.
If you want an exporter whose main purpose is to be small and light, I think such a design would get rid of as many features as possible. Looking at your code, I see that requiring the function names to have no sigil (rather than making it optional) simplifies the code. Keeping that note, why have non-functions supported, when by far the most common thing to export is functions. Look at what the short version code in Exporter does. Several modules define their own importer that are similar to Exporter but different. I've not looked at Exporter::Lite.
Why isn't Exporter::VA on CPAN yet? I don't know. The powers that be seem to be slow and/or not very clear. It's in my directory, just not indexed.
—John
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: Re: (bbfu) (Exporter::VA) Re: Exporter::Dream
by Juerd (Abbot) on Jan 06, 2003 at 18:37 UTC | |
by John M. Dlugosz (Monsignor) on Jan 06, 2003 at 21:04 UTC | |
by Juerd (Abbot) on Jan 06, 2003 at 21:11 UTC | |
by John M. Dlugosz (Monsignor) on Jan 06, 2003 at 21:23 UTC | |
by Juerd (Abbot) on Jan 06, 2003 at 21:35 UTC |