Re: Perl6 Modules - Documentation

2010-07-30 Thread Guy Hulbert
On Fri, 2010-30-07 at 11:07 -0700, Darren Duncan wrote: > I *really* want to use a multi-language-savvy spec like this to > distribute with. CPAN will also have to be able to handle modules written in arbitrary natural languages (chinese, arabic etc) will it not ? -- --gh

Re: implementing every(N)

2010-07-30 Thread Patrick R. Michaud
On Fri, Jul 30, 2010 at 09:17:30AM -0500, Ted Zlatanov wrote: > I have a Perl 5 module called Every which provides, simply, > > every(5); # true on invocation 5, 10, etc. > every(seconds => 5); # true at 5, 10, etc. seconds > > It's really nice in endless loops, logging, etc. I'd like to transla

Re: Perl6 Modules - Documentation

2010-07-30 Thread Darren Duncan
Jan Ingvoldstad wrote: On Fri, Jul 30, 2010 at 11:27, Steffen Schwigon wrote: Just an opinion: imho every effort should go towards integrating CPAN in any way. Maybe any of those META2.0, cpanminus, CPAN::Packager, CPAN::Dpendency, MyCPAN::*, POD6 thingies could be assembled into something to

Re: implementing every(N)

2010-07-30 Thread Ted Zlatanov
On Fri, 30 Jul 2010 12:19:16 -0500 "Patrick R. Michaud" wrote: PRM> On Fri, Jul 30, 2010 at 09:17:30AM -0500, Ted Zlatanov wrote: >> I have a Perl 5 module called Every which provides, simply, >> >> every(5); # true on invocation 5, 10, etc. >> every(seconds => 5); # true at 5, 10, etc. second

Re: questions about array references and captures

2010-07-30 Thread Leon Timmermans
On Fri, Jul 30, 2010 at 6:21 PM, R. Dresens wrote: > Yes, but aren't captures somehow replacements for references in > general... and therefore also array references? The reason why I > assume that is that I (wrongly?) expected a "real" 'Array()' when I > used the `\` prefix in an expression such

Re: Perl6 Modules - Documentation

2010-07-30 Thread Patrick R. Michaud
On Fri, Jul 30, 2010 at 04:08:49PM +0400, Richard Hainsworth wrote: > On 07/30/2010 01:27 PM, Steffen Schwigon wrote: > >Richard Hainsworth writes: > >>I am not aware that there is a convenient way of obtaining a short > >>description about each module, other than just the name? > > > >Perl withou

Re: questions about array references and captures

2010-07-30 Thread R. Dresens
On Fri, 30 Jul 2010 14:31:31 +0200 Leon Timmermans wrote: > On Thu, Jul 29, 2010 at 8:30 PM, R. Dresens wrote: > > > And what about this?... > >    my $x = [3, 4]; my @y = 1, 2, |$x, 5, 6; say @y.perl; > I think that you meant to do is this: > > my $x = [3, 4]; my @y = 1, 2, @($x), 5, 6;

Re: questions about array references and captures

2010-07-30 Thread R. Dresens
On Thu, 29 Jul 2010 20:55:39 -0700 Darren Duncan wrote: > R. Dresens wrote: > > I have some issues with the behavior related to array references > > and their actual replacements known as "captures" (as far as I'm > > correct). > Captures are not replacements for Arrays in general; they serve

implementing every(N)

2010-07-30 Thread Ted Zlatanov
I have a Perl 5 module called Every which provides, simply, every(5); # true on invocation 5, 10, etc. every(seconds => 5); # true at 5, 10, etc. seconds It's really nice in endless loops, logging, etc. I'd like to translate it to Perl 6 (using Rakudo specifically). Its current implementation r

Re: Perl6 Modules - Documentation

2010-07-30 Thread Guy Hulbert
On Fri, 2010-30-07 at 16:08 +0400, Richard Hainsworth wrote: > All I am suggesting is that the directories containing modules also > contain a METADATA file with some standard items, and that this > metadata > is required for a module that is registered. Even if there is a CPAN > system, the met

Re: questions about array references and captures

2010-07-30 Thread Leon Timmermans
On Thu, Jul 29, 2010 at 8:30 PM, R. Dresens wrote: > And what about this?... > >    my $x = [3, 4]; my @y = 1, 2, |$x, 5, 6; say @y.perl; > > ...I actually expected `[1, 2, 3, 4, 5, 6]`, since I was under the > impression that the '|' was some kind of "flatten" or > "interpolation" operator. > >

Re: Perl6 Modules - Documentation

2010-07-30 Thread Richard Hainsworth
On 07/30/2010 01:27 PM, Steffen Schwigon wrote: Richard Hainsworth writes: The number of modules available to proto has grown considerably. I am not aware that there is a convenient way of obtaining a short description about each module, other than just the name? Just an opinion: im

Re: Perl6 Modules - Documentation

2010-07-30 Thread Jan Ingvoldstad
On Fri, Jul 30, 2010 at 11:27, Steffen Schwigon wrote: > Just an opinion: imho every effort should go towards integrating CPAN > in any way. > > Perl without CPAN feels like Kung-Fu on stack-heel shoe. > > Maybe any of those META2.0, cpanminus, CPAN::Packager, > CPAN::Dpendency, MyCPAN::*, POD6 t

Re: Perl6 Modules - Documentation

2010-07-30 Thread Steffen Schwigon
Richard Hainsworth writes: > The number of modules available to proto has grown considerably. > > I am not aware that there is a convenient way of obtaining a short > description about each module, other than just the name? Just an opinion: imho every effort should go towards integrating CPAN in

Perl6 Modules - Documentation

2010-07-30 Thread Richard Hainsworth
The number of modules available to proto has grown considerably. I am not aware that there is a convenient way of obtaining a short description about each module, other than just the name? In order to make the perl6 internet-wide environment useful, there needs to be some form of directory in