Proposed doc for while/until

2015-09-16 Thread David H. Adler
Note: Proposing to put this *above* repeat/while / repeat/until. https://gist.github.com/dha/0a0736b9da74a8e61e49 dha -- David H. Adler - - http://www.panix.com/~dha/ A feature is often a bug with seniority.- Chip Salzenberg

Re: Proposed docs for C

2015-09-16 Thread David H. Adler
On Tue, Sep 15, 2015 at 11:28:59AM -0500, andy_b...@wiwb.uscourts.gov wrote: > [1 1 1 1] > next > [1 1 1 1 1 1] > next > [1 1 1 1 1 1 1 1] > > vs > > [1 2 3] > next > [1 2 3 3] > next > [1 2 3 3 3] > > I think the latter is clearer, though perhaps the problem is the original > code is a bit

Re: Proposed docs for C

2015-09-16 Thread Parrot Raiser
On 9/16/15, David H. Adler wrote: > So, how about this > > perl6 -e 'sub a {state @x; @x.push(++$)}; say a for 1..6;' > > [1] > [1 2] > Even better, but how about 'for a..f'? That makes it clear that the list values are being used, not some sort of subscript. (The less

Re: Proposed docs for C

2015-09-16 Thread David H. Adler
On Wed, Sep 16, 2015 at 04:42:27PM -0400, Parrot Raiser wrote: > On 9/16/15, David H. Adler wrote: > > > So, how about this > > > > perl6 -e 'sub a {state @x; @x.push(++$)}; say a for 1..6;' > > > > [1] > > [1 2] > > > > Even better, but how about 'for a..f'? That makes it