I was wondering whether the Perl 'while (<>){' idiom will continue to be
supported in Perl 6? I seem to recall people posting example code the list
using it (although I can't dig any up), but it seems to me that if Perl 6's
lazy list implementation is sufficiently smart, it could just be replaced
In a message dated Fri, 9 Aug 2002, Adam Lopresto writes:
> I was wondering whether the Perl 'while (<>){' idiom will continue to be
> supported in Perl 6? I seem to recall people posting example code the list
> using it (although I can't dig any up), but it seems to me that if Perl 6's
> lazy l
>I was wondering whether the Perl 'while (<>){' idiom will continue to
>be supported in Perl 6?
Actually, I once found myself wondering why while doesn't set $_ all
the time anyway... It would be nice to do things like
while ($iterator->each()) { ... }
while (query->nextResult()) { ... }
On Sat, Aug 10, 2002 at 02:23:07AM +0800, Christian Renz wrote:
> Actually, I once found myself wondering why while doesn't set $_ all
> the time anyway... It would be nice to do things like
Because the logic of the while construct doesn't require any
connection between the condition and the topic
Wow. Since you went to the trouble of writing all this up, it really
ought to go in a FAQ somewhere.
On Thu, Aug 08, 2002 at 12:05:00AM -0400, Mark J. Reed wrote:
> Finite state machines can match regular expressions whose only operations
> are closure (*), alternation (|), and grouping. Some of
On Fri, 9 Aug 2002, Adam Lopresto wrote:
: I was wondering whether the Perl 'while (<>){' idiom will continue to be
: supported in Perl 6? I seem to recall people posting example code the list
: using it (although I can't dig any up), but it seems to me that if Perl 6's
: lazy list implementation
On Fri, Aug 09, 2002 at 05:23:58PM -0700, Steve Fink wrote:
> Wow. Since you went to the trouble of writing all this up, it really
> ought to go in a FAQ somewhere.
It probably already is in a FAQ somewhere; I just don't know where. :)
> On Thu, Aug 08, 2002 at 12:05:00AM -0400, Mark J. Reed wrot
On Fri, Aug 09, 2002 at 09:50:00PM -0400, Mark J. Reed wrote:
> On Fri, Aug 09, 2002 at 05:23:58PM -0700, Steve Fink wrote:
> > On Thu, Aug 08, 2002 at 12:05:00AM -0400, Mark J. Reed wrote:
> > > Finite state machines can match regular expressions whose only operations
> > > are closure (*), alter