Re: Lazy Strings and Regexes

2010-10-31 Thread Darren Duncan
Francesco 'Oha' Rivetti wrote: On Sun, 31 Oct 2010 20:29:27 +0100, Moritz Lenz wrote: If we can efficiently match against a lazy string, and if this doesn't turn the lazy string into a (large) normal string, then the best way to process a file might be something similar to: my $fh = open ...

Re: Lazy Strings and Regexes

2010-10-31 Thread Francesco 'Oha' Rivetti
On Sun, 31 Oct 2010 20:29:27 +0100, Moritz Lenz wrote: If we can efficiently match against a lazy string, and if this doesn't turn the lazy string into a (large) normal string, then the best way to process a file might be something similar to: my $fh = open ... err die; my $contents = cat(

Paradise Regained

2010-10-31 Thread Henry Baragar
Hello, The Pure and Declarative Syntax Defintion: Paradise Lost and Regained paper presented at Onward! 2010 talks about extensible grammars that are very similar to the grammars provided by/built into Perl 6: it appears Perl 6 already had the Paradise that the authors recently "regained"! Th

Re: Lazy Strings and Regexes

2010-10-31 Thread Moritz Lenz
On 10/24/2010 07:07 PM, Ben Goldberg wrote: > I know that perl6 has / will have lazy strings, since (in > S32::Containers) the List role defines a cat method, which returns a > Cat object, which "does the Str interface, but generates the string > lazily." > > First, are Cat objects documented anyw