[Python-ideas] Thunks (lazy evaluation) [was Re: Delay evaluation of annotations]

Steven D'Aprano steve at pearwood.info
Mon Sep 26 09:05:07 EDT 2016


On Mon, Sep 26, 2016 at 10:46:57PM +1000, Steven D'Aprano wrote:
> Let's talk about lazy evaluation in a broader sense that just function 
> annotations.
> 
> If we had syntax for lazy annotation -- let's call them thunks, after 
> Algol's thunks 

Er, that should be lazy evaluation. Or at least delayed evaluation.

> -- then we could use them in annotations as well as 
> elsewhere. But if we special case annotations only, the Zen has 
> something to say about special cases.



-- 
Steve


More information about the Python-ideas mailing list