Re: Iterators and C

2004-09-09 Thread Piers Cawley
Aaron Sherman <[EMAIL PROTECTED]> writes: > On Thu, 2004-09-09 at 13:14, Larry Wall wrote: > >> So whereas Ruby's syntax actually tends to push you toward .each >> iterators, Perl 6's syntax will be fairly neutral on the subject, >> or maybe biased every so slightly away from method iteration by t

Re: Iterators and C

2004-09-09 Thread Aaron Sherman
On Thu, 2004-09-09 at 13:14, Larry Wall wrote: > So whereas Ruby's syntax actually tends to push you toward .each > iterators, Perl 6's syntax will be fairly neutral on the subject, > or maybe biased every so slightly away from method iteration by the > width of about one character: > > for @

Re: Synopsis 9 draft 1

2004-09-09 Thread Smylers
Michele Dondi writes: > On Thu, 2 Sep 2004, Larry Wall wrote: > > > To declare a multidimensional array, you add a shape parameter: > > > > my num @nums is shape(3); # one dimension, @nums[0..2] > > my int @ints is shape(4;2); # two dimensions, @ints[0..3; 0..1] > > Just a random thou

Re: Iterators and C

2004-09-09 Thread Larry Wall
On Thu, Sep 09, 2004 at 09:27:36AM -0700, David Wheeler wrote: : On Sep 9, 2004, at 9:14 AM, Larry Wall wrote: : : >I just borrowed the -> from Perl 5 because I knew it was available, : >and I thought it read better for C loops than the Ruby approach. : : Interestingly, I was at PDX.pm last night

Iterators and C

2004-09-09 Thread David Wheeler
On Sep 9, 2004, at 9:14 AM, Larry Wall wrote: I just borrowed the -> from Perl 5 because I knew it was available, and I thought it read better for C loops than the Ruby approach. Interestingly, I was at PDX.pm last night for a presentation entitled, "Ruby for Perl Programmers." One of the things t

Re: Synopsis 9 draft 1

2004-09-09 Thread Luke Palmer
John Macdonald writes: > As an array index -1 and 0 give you the 2 ends. The perl5 > code to alternately extract elements from the two eds of an > array can be something like: > > my $end = 0; # -1 to start with right end > > while( @array ) { > my $next = splice( @array, $end

Re: Q: re C<< -> >>

2004-09-09 Thread Larry Wall
On Thu, Sep 09, 2004 at 03:20:22PM +0200, Michele Dondi wrote: : I hope not to raise too much the noise/signal level on list, but I have a : question: I have had a long experience programming my HP28s pocket : calculator, and its RPN language that AFAIK is mostly the same as that of : newer models,

Re: Synopsis 9 draft 1

2004-09-09 Thread John Macdonald
On Thu, Sep 09, 2004 at 03:09:47PM +0200, Michele Dondi wrote: > On Thu, 2 Sep 2004, Larry Wall wrote: > > > And yes, an C can store only -1 or 0. I'm sure someone'll think of > > a use for it... > > Probably OT, but I've needed something like that badly today: "working" on > a japh that turned

Q: re C<< -> >>

2004-09-09 Thread Michele Dondi
I hope not to raise too much the noise/signal level on list, but I have a question: I have had a long experience programming my HP28s pocket calculator, and its RPN language that AFAIK is mostly the same as that of newer models, supported constructs of the form -> a b << ... >> where C<< -> >>

Re: Synopsis 9 draft 1

2004-09-09 Thread Matthew Walton
Michele Dondi wrote: On Thu, 2 Sep 2004, Larry Wall wrote: To declare a multidimensional array, you add a shape parameter: my num @nums is shape(3); # one dimension, @nums[0..2] my int @ints is shape(4;2); # two dimensions, @ints[0..3; 0..1] Just a random thought, and probably a minor poi

Re: Synopsis 9 draft 1

2004-09-09 Thread Michele Dondi
On Thu, 2 Sep 2004, Larry Wall wrote: > And yes, an C can store only -1 or 0. I'm sure someone'll think of > a use for it... Probably OT, but I've needed something like that badly today: "working" on a japh that turned out to require mostly golfing skills (and not that I have many, I must admit)

Re: Synopsis 9 draft 1

2004-09-09 Thread Michele Dondi
On Thu, 2 Sep 2004, Larry Wall wrote: > To declare a multidimensional array, you add a shape parameter: > > my num @nums is shape(3); # one dimension, @nums[0..2] > my int @ints is shape(4;2); # two dimensions, @ints[0..3; 0..1] Just a random thought, and probably a minor point: I know

Re: What Requires Core Support (app packaging)

2004-09-09 Thread James Mastros
Nicholas Clark wrote: On Tue, Sep 07, 2004 at 06:07:24PM +0200, James Mastros wrote: 4. The single-file, platform dependent, machine language executable (realexe). Which parrot can already do. (Or at least could, but I don't think that anyone's been checking on it recently) Er, right -- I'd meant