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

2016-09-26 Thread Steven D'Aprano
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

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

2016-09-26 Thread Steven D'Aprano
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 -- then we could use them in annotations as well as elsewhere. But if we special case annotations only, the Zen has