develooper Front page | perl.perl6.stdlib | Postings from August 2001

Re: Perl 6 modules plan

Thread Previous | Thread Next
From:
Jarkko Hietaniemi
Date:
August 11, 2001 16:33
Subject:
Re: Perl 6 modules plan
Message ID:
20010811183321.W23329@chaos.wustl.edu
On Sat, Aug 11, 2001 at 07:20:11PM -0400, schwern@pobox.com wrote:
> On Sat, Aug 11, 2001 at 02:16:49PM -0500, Jarkko Hietaniemi wrote:
> > One silliness is that the implementation "style" of the module
> > seems to creep to the naming:
> > 
> > (1) Foo vs Foo_XS
> 
> Well then, how do you name it?  For example, Text::CSV.  There's a
> pure perl implementation and an XS implementation.  If they're both in
> the same tarball, it should probably be Text::CVS::Perl and

But they are not.  In this particular case they are (IIRC) by
different authors.

> Text::CVS::XS with Text::CSV acting as a little wrapper to choose
> which one.  Simple enough.
>
> But what if the XS implementation is seperate from the pure Perl one?
> How do you name it?

I dodge the direction question by noting that for most/many users
the difference (XS vs non-XS) is irrelevant.   The information *may*
be relevant in some cases (e.g. you want to go for speed) but having
such difference glaring at you in the name itself is silly.

	ModuleWrittenUsingLongVariableNames
	ModuleUsingRecursion
	ModuleWrittenOnTuesday
	ModuleWrittenByAuthorNotWashingHisHandsInBathroom

Remember, the goal for Perl 6 is to allow several modules sharing
the same name.

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About