Re: Support for ensuring invariants from one loop iteration to the next?

2008-12-18 Thread Jon Lang
Aristotle Pagaltzis wrote: > And it says exactly what it's supposed to say in the absolutely > most straightforward manner possible. The order of execution is > crystal clear, the intent behind the loop completely explicit. If it works for you, great! Personally, it doesn't strike me as being as

Re: Support for ensuring invariants from one loop iteration to the next?

2008-12-18 Thread Larry Wall
On Fri, Dec 19, 2008 at 01:47:08AM +0100, Aristotle Pagaltzis wrote: : And I just realised how to best do that in Perl 5: : : goto INVARIANT; : : while ( @stuff ) { : $_->do_something( ++$i ) for @stuff; : : INVARIANT: : @stuff = grep { $_->valid } @stuff; : }

Re: Support for ensuring invariants from one loop iteration to the next?

2008-12-18 Thread Aristotle Pagaltzis
* David Green [2008-12-18 19:45]: > Well, I prefer a built-in counter like that, but I thought the > point was that you wanted some kind of block or something that > could be syntactically distinct? No, that would only be a means to the end. That end is simply to not repeat myself in writing hone

Re: 6PAN Spec question

2008-12-18 Thread Timothy S. Nelson
On Fri, 19 Dec 2008, Timothy S. Nelson wrote: Are there any objections if I refactor the current S22 into 3 parts, and retain the .jib files stuff in the current S22 (renamed to S22-package-format.pod), a document containing "what S22 said about CPAN6" (which we could then donate to the cpan6

r24478 - docs/Perl6/Spec

2008-12-18 Thread pugs-commits
Author: particle Date: 2008-12-19 01:08:34 +0100 (Fri, 19 Dec 2008) New Revision: 24478 Modified: docs/Perl6/Spec/S19-commandline.pod Log: [spec] ideas on run-time system option and environment variables; minor updates and corrections Modified: docs/Perl6/Spec/S19-commandline.pod

r24477 - docs/Perl6/Spec

2008-12-18 Thread pugs-commits
Author: wayland Date: 2008-12-19 01:07:24 +0100 (Fri, 19 Dec 2008) New Revision: 24477 Modified: docs/Perl6/Spec/S22-package-format.pod Log: Removed stuff about repositories and build and install software. Modified: docs/Perl6/Spec/S22-package-format.pod

r24475 - docs/Perl6/Spec

2008-12-18 Thread pugs-commits
Author: particle Date: 2008-12-19 01:05:41 +0100 (Fri, 19 Dec 2008) New Revision: 24475 Modified: docs/Perl6/Spec/S06-routines.pod Log: [spec] whitespace after commas is not allowed when passing multiple values to a command-line option Modified: docs/Perl6/Spec/S06-routines.pod ==

Re: 6PAN Spec question

2008-12-18 Thread Timothy S. Nelson
On Thu, 18 Dec 2008, Daniel Ruoso wrote: Em Qui, 2008-12-18 às 13:08 +1100, Timothy S. Nelson escreveu: My question is, what sort of information actually belongs in a final version of the 6PAN spec? I'm assuming it will at least include 6PAN Package format (layout, metadata, etc), and

CPAN6 vs. 6PAN (was: Re: 6PAN Spec question)

2008-12-18 Thread Timothy S. Nelson
Mark, am I right in putting it like this? 6PAN: - Perl6 package format - Client-side part of "CPAN" CPAN6: - Server-side part of "CPAN" (with more stuff) Is that how you see it? :) -

r24474 - docs/Perl6/Spec

2008-12-18 Thread pugs-commits
Author: lwall Date: 2008-12-18 22:20:36 +0100 (Thu, 18 Dec 2008) New Revision: 24474 Modified: docs/Perl6/Spec/S12-objects.pod docs/Perl6/Spec/S29-functions.pod Log: [Spec] redefine WHAT to stringify to typename plus '()' Modified: docs/Perl6/Spec/S12-objects.pod ==

Re: Support for ensuring invariants from one loop iteration to the next?

2008-12-18 Thread David Green
On 2008-Dec-17, at 5:15 pm, Aristotle Pagaltzis wrote: The way Template Toolkit solves this is far better: the loop body gets access to an iterator object which can be queried for the count of iterations so far and whether this is the first or last iteration. Well, I prefer a built-in counter l

r24472 - docs/Perl6/Spec

2008-12-18 Thread pugs-commits
Author: ruoso Date: 2008-12-18 19:26:20 +0100 (Thu, 18 Dec 2008) New Revision: 24472 Modified: docs/Perl6/Spec/S11-modules.pod Log: [spec] Foo::Bar::.EXPORTALL instead of Foo::Bar.EXPORTALL Modified: docs/Perl6/Spec/S11-modules.pod ==

Re: 6PAN Spec question

2008-12-18 Thread Mark Overmeer
* jerry gay (jerry@gmail.com) [081218 14:01]: > > If you understand my explanation of CPAN6, then you certainly must be > > ware that 6PAN and CPAN6 have nothing to do with each other. Please do > > not use them in combination. It is as silly as saying TCP/Linux > there's a difference? that

Re: Perl6's RE(P)L

2008-12-18 Thread jerry gay
On Wed, Dec 17, 2008 at 11:51, Moritz Lenz wrote: >> Since Perl 5 has no REPL, I'm not sure where such a spec would go. S20, >> maybe, since the debugger is the closest thing? > > or maybe S19, because it defines the console interface to the rest of > the world. Or just pick a not-yet-used number

Re: 6PAN Spec question

2008-12-18 Thread jerry gay
On Thu, Dec 18, 2008 at 05:45, Mark Overmeer wrote: > * Daniel Ruoso (dan...@ruoso.com) [081218 13:39]: >> Em Qui, 2008-12-18 às 13:08 +1100, Timothy S. Nelson escreveu: >> > My question is, what sort of information actually belongs in a final >> > version of the 6PAN spec? I'm assuming it wi

Re: 6PAN Spec question

2008-12-18 Thread Mark Overmeer
* Daniel Ruoso (dan...@ruoso.com) [081218 13:39]: > Em Qui, 2008-12-18 às 13:08 +1100, Timothy S. Nelson escreveu: > > My question is, what sort of information actually belongs in a final > > version of the 6PAN spec? I'm assuming it will at least include 6PAN > > Package > > format (layout

Re: 6PAN Spec question

2008-12-18 Thread Daniel Ruoso
Em Qui, 2008-12-18 às 13:08 +1100, Timothy S. Nelson escreveu: > My question is, what sort of information actually belongs in a final > version of the 6PAN spec? I'm assuming it will at least include 6PAN Package > format (layout, metadata, etc), and I'd suggest that it also include the >

Re: 6PAN idea

2008-12-18 Thread Daniel Ruoso
Em Qui, 2008-12-18 às 11:38 +0100, Mark Overmeer escreveu: > In the current state of affairs, CPAN is limited to Perl5 and strongely > entangled by Perl5 install tools. Do we want to have people install > Perl5 on their (maybe small) machine before they can install Perl6 stuff? > Rpm-tools and deb

Re: 6PAN idea

2008-12-18 Thread Mark Overmeer
* Daniel Ruoso (dan...@ruoso.com) [081217 13:19]: > Em Qua, 2008-12-17 às 23:35 +1100, Timothy S. Nelson escreveu: > > On Wed, 17 Dec 2008, Daniel Ruoso wrote: > > > Em Qua, 2008-12-17 às 15:00 +1100, Timothy S. Nelson escreveu: > > >> My basic assumption is that there's going to be some kind of pa

Re: Perl6's RE(P)L

2008-12-18 Thread Moritz Lenz
Mark J. Reed wrote: > Following up to a bug report, Mr Lenz wrote: > > Another detail: if i do this in the REPL, it works fine, until I close >> the REPL - then I get the same backtrace as before. >> > > ...except that this is a Rakudo bug, and Rakudo doesn't have a REPL. BTW there's a patch fo