Hi,
Yuval Kogman nothingmuch at woobling.org writes:
we have a lazy modifier:
my $a = lazy { get_value(5, 10) };
as of r3739 implemented in Pugs. :)
The only builtin feature that needs to be added is that coroutines
can masquerade as their return value, and not a code
Yuval Kogman wrote:
The only builtin feature that needs to be added is that coroutines
can masquerade as their return value, and not a code reference, but
AFAIK proxy objects will give us that anyway, right?
Hmm, isn't the same achieved by considering Eager and Lazy as
subtypes of Code? E.g.
Hola,
Some of us on #perl6 bitched once more about how lazy will make our
IO brain hurt a lot.
The concensus is that a lazy context has not been discussed yet.
Here is a proposal for lazyness defined with coroutines.
we have a lazy modifier:
my $a = lazy { get_value(5, 10
On Fri, 20 May 2005, Yuval Kogman wrote:
then it is not finalized into a real value. Here's how the range
operator would be implemented:
sub infix:.. ($from, $to where { $to $from }){ reverse $to ..
$from }
sub infix:.. ($from, $to) { lazy gather {
while ($from =
On Fri, May 20, 2005 at 05:15:24PM -0400, C. Scott Ananian wrote:
On Fri, 20 May 2005, Yuval Kogman wrote:
then it is not finalized into a real value. Here's how the range
operator would be implemented:
sub infix:.. ($from, $to where { $to $from }){ reverse $to ..
$from }
On Fri, May 20, 2005 at 17:15:24 -0400, C. Scott Ananian wrote:
This is very elegant. It might be worthwhile for someone to attempt to
define a 'core
perl' set of operators, etc, so that the 'rest of perl' can be defined in
perl proper...
Have a look at synopsis 29... For documentation