Re: How to default? (was Unary dot)

2002-04-13 Thread Allison Randal
On Sat, Apr 13, 2002 at 08:53:41AM -0700, Glenn Linderman wrote: > > Off hand, it seems like defaulting to "is dynamic_topic" would make > more of those common useful $_-dependent subroutines work without > change, but I guess if the perl 5 to 6 translator can detect use of $_ > before definition

Re: vector processing in Perl6?

2002-04-13 Thread Larry Wall
Rich Morin writes: : Some while back, I asked the Perk5-porters whether there were any : parts of Perl that could benefit from vector processors (e.g., the : G4 Velocity Engine). The consensus of the respondents ranged from : "probably not" to "I don't want to think about it". Well, Perl 5 doesn

Re: Unary dot

2002-04-13 Thread Larry Wall
[EMAIL PROTECTED] writes: : Dave Mitchell wrote: : : > The top 20 'my $var' declarations in .pm files in the bleedperl : > distribution: : : How *dare* you introduce hard data into this discussion! : Next you'll be wanting to deal in actual facts rather than personal : opinion and sheer guesses

Re: How to default? (was Unary dot)

2002-04-13 Thread Luke Palmer
> There'd be an interaction between is topic_preserving, default parameter > values, and explicit parameter values which should be clarified. Now I > understand why someone suggested using //= $_ instead of is > topic_preserving, somewhere along the line. Clearly if the user > supplies the par

Re: Fisher-Yates shuffle

2002-04-13 Thread Andrew Pimlott
On Sat, Apr 13, 2002 at 12:51:06AM -0700, Ashley Winters wrote: > Perl today: A semicolon is required after every statement, except before a > closing curly or end of file. > Perl 6: A semicolon is also required after every block, except when the > closing curly is on a line of its own, or it prec

Re: How to default? (was Unary dot)

2002-04-13 Thread Glenn Linderman
Allison Randal wrote: > What if $_ were dynamically scoped, but only for subroutines? Dynamic > scoping is not necessarily the same thing as a global $_. It would > merely pretend (only for $_) that the subroutine had been defined in the > scope where it was evaluated. But that could get you into

Re: How to default? (was Unary dot)

2002-04-13 Thread Allison Randal
On Fri, Apr 12, 2002 at 05:34:13PM -0700, Glenn Linderman wrote: > Allison Randal wrote: > > > In a message dated Fri, 12 Apr 2002, Glenn Linderman writes: > > > > $_ becomes lexical > > > Sound logic. And it almost did go that way. But subs that access the > > current $_ directly are far too com

Re: Fisher-Yates shuffle

2002-04-13 Thread Ashley Winters
- Original Message - From: <[EMAIL PROTECTED]> > On Fri, Apr 12, 2002 at 04:42:07PM +0100, Piers Cawley wrote: > > [EMAIL PROTECTED] writes: > > > > > > Why isn't > > > > > > if %foo {"key"} {print "Hello 1"} > > > > > > equivalent with the perl5 syntax: > > > > > > if (%foo) {"key