3 Mar
2016
3 Mar
'16
5:37 a.m.
On Thu, Mar 3, 2016 at 11:00 AM, Mike Miller
Hmm, can't think of a way to get rid of the colon without it looking like a generator, but perhaps we could tackle the other issues by letting "def" stand in for "lambda":
lambda x: x.y
def x: x.y
It's shorter, not an esoteric word, and is analogous to a named function definition, reminiscent of javascript. The lack of name/parens separates it from the standard form. Doable, but of course its pretty late in the game to be changing lambda, perhaps in Python 4?
T