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

Feb. 18, 2017
10 a.m.
Hi Erik, I have changed my proposal to the alternative syntax a:: b (Note my preferred spacing. This is to make it read like some annoation applied to the expression, like delayed:: expensive_function()+1 ) Since :: is a binary operator, we need to think about associativity. My conservative proposal would be to make it non-associative, you would have to write explicitly a:: (b:: c) or (a:: b):: c Stephan Op 17 feb. 2017 22:35 schreef "Erik" <python@lucidity.plus.com>: On 17/02/17 10:22, Stephan Houben wrote:
Isn't this too general a syntax? Doesn't it lead to something like: if a: b: c: d: e: pass E.
2951
Age (days ago)
2951
Last active (days ago)
0 comments
1 participants
participants (1)
-
Stephan Houben