On Wed, Jun 06, 2001 at 02:20:25PM -0500, David L. Nicol wrote:
> Since this thread made it into this week's Official Perl6 Summary,
> here goes a defense of C<it> as a shorthand for the thing that last
> had C<defined> or C<exists> queried of it.
Ya know, I hate myself to admit it but I'm liking this idea. The one
that got me was this:
foreach my $uid (@users) {
print it if is_luser($uid);
}
I like the way it reads. If 'it' is read-only it limits the potential
complications. Yes, you can do similar things with grep...
print grep is_luser($_), @users;
but TMTOWTDI.
I am a bit worried about having to do so much pointer copying to
support this feature.
PS 'it' could take many forms
--
Michael G. Schwern <[EMAIL PROTECTED]> http://www.pobox.com/~schwern/
Perl6 Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One
Monkey tennis