Interfaces

2002-09-29 Thread Michael G Schwern
Recently I presented a Perl 6 overview talk at a Java conference. The audience was mostly mute, which is unfortunate as I wanted to hear some feedback or at least some groans of pain, but there was one Lisp programmer in the front row that asked some interesting questions. One was "Perl 6 suppor

Re: Passing arguments

2002-09-29 Thread Smylers
Paul Johnson wrote: > On Sat, Sep 21, 2002 at 10:05:50AM -, Smylers wrote: > > > Many Perl programs use C<$_> to mean > > 'the current line'. 'A2' gives the Perl 6 syntax for this as: > > > >while $STDIN { > > > > Maybe somewhere in the middle of > > it, it's necessary to have a C loo

Re: Regex query

2002-09-29 Thread Smylers
Luke Palmer wrote: > On 21 Sep 2002, Smylers wrote: > > > But because C<$num> _might_ be used as an array ref, the data has to > > be kept around, which is wasteful. > > The programmer should know whether it would or wouldn't, Oh, I wasn't doubting that. I was just concerned that if the 'typi

Re: Regex query

2002-09-29 Thread Smylers
Aaron Sherman wrote: > On Sat, 2002-09-21 at 06:38, Smylers wrote: > > > ... lists now use square brackets. > > I don't disagree that this is a good thing, but let's look at some > cases that might not look the way you had intended: Oh, I hadn't really intending anything. Starting from what