in reply to Re: Re: Re: A set of new operators. In keeping with the design of Perl?
in thread A set of new operators. In keeping with the design of Perl?
I feel a bit like the kid outside the sweet shop (candy store), or toy shop. Allowed to look, but not to touch:)
Surprisingly, despite the fact that my only knowledge of P6 syntax is that gleaned from a few passes through the Apocolypsies and Exegisies (sp x2?), along with your occasional posts here, I find all of that extremely readable. Obviously your copius comments and context help, but it still bodes well for the future.
A few questions arising, if you have the time
I see you using (what I take to be) the P6 equivalents of P5s $a and $b. Apart from that they are presumable properly scoped remooving the old global clash fears, are they limited to just those two? By which I mean, if I need to look at more than two elements of the argument array at a time (eg. a moving averages calculation) can I get to them through $^c, $^d etc? Does this thought make any sense? (Semi-rhetorical).
Will @args (and @values) be implemented as a list or an iterator?
Do you have any feel for whether calling subs in P6 will have a lower overhead than P5?
Finally (for now at least), in your previous post below, you showed this
multi infix:max= (Num $curr is rw, Num $new) is exported { $curr = max $curr, $new; }
Does that happily combine with the multi max subs above?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: A set of new operators. In keeping with the design of Perl?
by TheDamian (Vicar) on May 20, 2003 at 22:03 UTC | |
by BrowserUk (Patriarch) on May 20, 2003 at 23:13 UTC |