
Feb. 9, 2020
12:44 p.m.
On 2/9/2020 7:34 AM, Soni L. wrote:
I propose that:
def foo(print(x)): pass
becomes:
def foo(x): x = print(x) pass
or, alternatively we could have decorators in function args:
def foo(@print x): pass
which would probably be more aligned with the rest of python actually.
anyway, this would be nice I think. I could really use it.
I'm having a hard time imagining where this would be useful. Could you give a concrete example where it would make some code clearer? Surely you wouldn't use it with print(), which returns None. Eric