develooper Front page | perl.perl5.porters | Postings from October 2004

Re: [perl #30123] foreach ("", "a".."zzzzzz") confuses range optimizer

Thread Previous | Thread Next
From:
Michael G Schwern
Date:
October 15, 2004 09:31
Subject:
Re: [perl #30123] foreach ("", "a".."zzzzzz") confuses range optimizer
Message ID:
313c1d13041015000240311db8@mail.gmail.com
On Thu, 9 Sep 2004 22:47:35 +0100, Dave Mitchell <davem@iabyn.com> wrote:
> I'm not sure how this can be construed as a bug. In the general
> case I'd expect 'a'..'zzzzzzz' to generate a large list, since P5 doesn't
> have P6's lazy lists. It just so happens that C<for (X..Y)> is
> special-cased, but I don't see why that should lead to a general
> expcatation of lazy-listness?

I have high expectations.

Call it a feature request if it makes you feel better.  I reported it
so its in the tracking system if someone wants to take a crack at it.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About