[Python-ideas] Light-weight call-by-name syntax in Python

Erik python at lucidity.plus.com
Fri Feb 17 16:35:52 EST 2017


On 17/02/17 10:22, Stephan Houben wrote:
> Proposal: Light-weight call-by-name syntax in Python
>
>   The following syntax
>      a : b
>   is to be interpreted as:
>      a(lambda: b)

Isn't this too general a syntax? Doesn't it lead to something like:

if a: b: c: d: e: pass

E.


More information about the Python-ideas mailing list