Re: Perl 6 modules plan
[email protected] (Jarkko Hietaniemi) Sat, 11 Aug 2001 18:33:21 -0500
| Newsgroups | perl.perl6.stdlib |
|---|---|
| Message-ID | <[email protected]> |
On Sat, Aug 11, 2001 at 07:20:11PM -0400, [email protected] 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