r/shittyprogramming • u/dankey26 • Dec 19 '22
multi line lambdas, as god intended
/r/Python/comments/zq2b1f/multi_line_lambdas_as_god_intended/
62
Upvotes
r/shittyprogramming • u/dankey26 • Dec 19 '22
5
u/DaveMoreau Dec 20 '22 edited Dec 20 '22
Cool, though I believe PEP 8 doesn't like assigning lambdas to variables. And it makes exceptions more vague.
Edit: just noticed the subreddit. Not one I am subscribed too, but the reddit client recommended it. My bad.
17
u/[deleted] Dec 20 '22
They should start having competitions where they ask you to implement a new syntax feature in Python
2
u/Miltnoid Dec 20 '22
Why is this shitty?
2
u/sp3dhands Jan 10 '23
Multiline lambdas are not shitty 😡😡😡))))))