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 anywhere

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! The

Re: Lazy Strings and Regexes

2010-10-31 Thread Francesco 'Oha' Rivetti
On Sun, 31 Oct 2010 20:29:27 +0100, Moritz Lenz mor...@faui2k3.org 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;

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 mor...@faui2k3.org 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:

[perl #78738] [BUG] Multiple dispatch on required named param makes 0-parm sub invisible

2010-10-31 Thread via RT
# New Ticket Created by Bruce Gray # Please include the string: [perl #78738] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=78738 On Rakudo Star 2010-10, this code works as expected, outputting 42\n : multi sub