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 reference, but 
> AFAIK proxy objects will give us that anyway, right? 
 
Yep: 
  my $a := new Proxy: FETCH => { get_value(5, 10) }; 
 
(FWIW, I'd like to see lazy "in the core", too, but I don't have 
a strong opinion on this.) 
 
 
--Ingo 
 
--  
Linux, the choice of a GNU | Row, row, row your bits, gently down the 
generation on a dual AMD   | stream...   
Athlon!                    | 

Reply via email to