[EMAIL PROTECTED] writes:

> I'm starting to rewrite a module (Set::Infinite)
> for Perl 6.

Um ... OK!

> I'd like to know if there are already guidelines on how to proceed.

I don't think so.

> Some options I've thought of:
> - don't put it on CPAN 

That's possible.  If you do put it on Cpan then people may try to
download and install it, and current perls will trip up over even the
first line of a Perl 6 module.

> - change version to 2.00_00

I reckon that'd look like a newer version for Perl 5.

> - use Set::Infinite::Perl6 namespace 

Possibly.  However that would only be a short-term measure: once Perl 6
is in use that'd be an inappropriate name.  But obviously the problem
needs solving generally for Perl 6 modules, and if you just want
something circulating now for playing with and testing it doesn't matter
if you use a temporary name that has to change later.

Except that the purpose of releasing such a module now would not be of
any use for people wanting to do stuff with infinite sets.  But it would
be of interest to people wanting to experiment with Perl 6, even if
they've got no particular interest in sets.

That would suggest:

> - use Perl6::Set::Infinite namespace

But don't do that: there are already things in the Perl6:: namespace,
and they are Perl 5 modules that implement (approximations of) Perl 6
features.  There is a definite expectation that modules in the Perl6::
namespace will run on Perl 5 interpreters!

Sorry, I don't have any good ideas about what to name it; it seems to me
that, as an incompatible language, Perl 6 modules should be entirely
parallel to Perl 5 modules without infecting the current Cpan.

Even after Perl 6 is released there are still going to be many people
requiring Perl 5 modules; having the CPAN module download Perl 6 modules
is not going to be any better for them than downloading Python or Ruby
modules would be.

Currently CPAN always grabs the latest version, something that often
leads to problems on a new FreeBSD 4 server we have running at work,
which has perl 5.005_03: many current Cpan modules (understandable)
require 5.6 or newer and so refuse to install.  But we already have
those modules running on existing FreeBSD 4 servers -- they were
installed a few years ago with what was then the latest versions.  So we
have to go hunting for old versions to install on the new server.

I realize we're quite unusual in having a new server with such an old
perl on it.  But even several years after Perl 6's release I don't think
it'll be unusual to have Perl 5 around.

Smylers

Reply via email to